How do you connect to multiple databases on a single webpage? : <p>I was wondering  how i can connect to multiple databases on a single PHP webpage.
i know how to connecet to a single database  using:</p>

<pre><code>enter code here:
               $dbh=mysql_connect($hostname,$username,$password)or die("unable to connect to MYSQL");
</code></pre>

<p>However,can i just use multiple "mysql_connect"commands to open the other databases,and how would PHP know what databases i want the informaion pulled from if I do have multiple databases connected</p>
