I have one page that is trying to connect to two databases at once... but I cannot find any decent descriptiopn on how to do this... I find suggestions like "if you do that twice, the link identifier will be different, but it won't be either." That doesn't help at all.
Can anyone figure out why this causes errors:
$connection1 = mysql_connect($hostname, $username, $password);
$db1=mysql_select_db($data1,$connection1);
$db2=mysql_select_db($data2,$connection1);
$Query1="SELECT * FROM Carts";
$result=mysql_query($Query1,$db1);
$num=mysql_num_rows($result);
echo"$num";