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:
enter code here:
$dbh=mysql_connect($hostname,$username,$password)or die("unable to connect to MYSQL");
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