title: PHP/MySQL select a database?
body: <p>Think this should be an easy one. I understand how to establish a connection, eg:</p>
  
  <pre><code>$con = mysql_connect("localhost","peter","abc123");
  </code></pre>
  
  <p>Where <code>localhost</code> is the database type, <code>peter</code> is the user and <code>abc123</code> the password but how do you specify the actual database? For example, I have 3 databases on my server. How do I specify database2?</p>