Re: Two MySQL connections in one script not working as expected

From: Date: Tue, 27 Sep 2005 19:14:55 +0000
Subject: Re: Two MySQL connections in one script not working as expected
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-223303@lists.php.net to get a copy of this message
----- Original Message ----- From: "Charles Kline" <ckline@rightcode.net> To: <php-general@lists.php.net> Sent: Tuesday, September 27, 2005 8:25 PM Subject: [PHP] Two MySQL connections in one script not working as expected
Hi all, I have a script that needs to update data in two databases. My db connections are both in class files that I created to execute the various connections and queries. What is happening is that the second database connection does not seem to work. The error I get is that it seems the second query is being executed against the first database connection - does that make sense? So I get an error that the database_name.table_name does not exist, which is true, but the query is getting executed against the wrong database name. Any ideas? Thanks, Charles --
Hi there! Maybe you are using the same variables that may confuse things...? /G http://www.varupiraten.se/

« previous php.general (#223303) next »