title: PHP and MySQL - can't select database
body: <p>I'm trying to use a database 'coolometer. I've tried connecting like this:</p>
  
  <pre><code>$con = mysqli_connect("localhost", "x", "x", "coolometer") or die("cannot connect");
  </code></pre>
  
  <p>But it just says 'no database selected'. Any suggestions?</p>