query 2 databases from one script

From: Date: Tue, 03 Apr 2001 22:20:43 +0000
Subject: query 2 databases from one script
Groups: php.general 
Request: Send a blank email to php-general+get-46900@lists.php.net to get a copy of this message
I've a script has many functions in it all of which hit databaseA . I've added a new function which is to get data from databaseB how can I go about this in one script when I try to connect to a database other than the one defined at the beginning of the script all the functions in the script break as if I am setting the wrong database at the top of the script. Any help would be greatly appreciated. Michael Roark

« previous php.general (#46900) next »