...

consult on two db

urgido
11-05-2006, 04:41 AM
How I can make a consult between two databases using the same connect.php file?

Regards

Mwnciau
11-05-2006, 12:39 PM
When you connect to the database do something like:

$db1 = mysql_connect();
$db2 = mysql_connect();


then in the mysql_query function:
resource mysql_query ( string query [, resource link_identifier] )
you can state which database to use ($db1 or $db2) using the resource link_identifier.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum