is it possible to have two open connections to two different mysql dbs at the same time? when i tried it, only the one on the bottom of the list was active.
my config file looks like this:
//---------------------------------------------//
$dbname = 'xxx'; # Database Name
$dbuser = 'xxx'; # Database Username
$dbpass = 'xxx'; # Database Password
$dbhost = 'xxx'; # Database Host
$conn2 = mysql_connect($dbhost,$dbuser,$dbpass) or die ("Could not connect to $dbname: ".mysql_error());
mysql_select_db($dbname) or die ("Could not access the database: ".mysql_error());
$dbname5 = 'yyy'; # Database Name
$dbuser5 = 'yyy'; # Database Username
$dbpass5 = 'yyy'; # Database Password
$dbhost5 = 'yyy'; # Database Host
$conn = mysql_connect($dbhost5,$dbuser5,$dbpass5) or die ("Could not connect to $dbname5: ".mysql_error());
mysql_select_db($dbname5) or die ("Could not access the database: ".mysql_error());
//--------------------------------------//
so i want to be able to do
mysql_query($query,$conn2) when i need to access xxx db, but it doesn't seem to work that way. am i doing something incorrectly? any help would be greatly appreciated.