What about connection file? I am confused. Here is my connection file.
$connection=mysql_connect("localhost","root","") or die ("Connection error.");
$db=mysql_select_db("buddy",$connection) or die ("Database error.");
$sql="SELECT
a.field1,
a.field2
FROM
database1.table a
LEFT JOIN
database2.table b
ON
a.field1=b.field1";
mysql_query($sql) or die(mysql_error());
Now how to define 2 different databases and how will the query select the database.
Thanks!
BestPriceHost.com
3 MySQL databases with every account