Re: multiple databases

From: Date: Wed, 16 Jul 2003 03:55:06 +0000
Subject: Re: multiple databases
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-155360@lists.php.net to get a copy of this message
Paulo Neves <seven@lafoes.com> 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 --

« previous php.general (#155360) next »