Paulo Neves <[EMAIL PROTECTED]> wrote: > Hi, > > > > How can I set up PHP to work with multiple databases in the same page? > (not tables) $dbh1 = server_connect(params...); $dbh2 = server_connect(params...);
Just be sure to pass the optional $dbh1 or $dbh2 to the appropriate query. $result1 = server_query($sql_fordb1, $dbh1); $result2 = server_query($sql_fordb2, $dbh2); > > That's all, > Thanks > No problem Curt -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php