Re: DataObject with Multiple Databases

From: Date: Thu, 04 Dec 2003 03:34:25 +0000
Subject: Re: DataObject with Multiple Databases
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-9286@lists.php.net to get a copy of this message
See http://pear.php.net/manual/en/package.database.db-dataobject.intro-configuration.php "Configuration Options - Multiple Databases (optional)" AFAIR, you can also set the $dataobject->database value as well, to specify which database to use. Regards Alan Steve Lianoglou wrote:
I'm wondering if (and how) it would be possible to use DB_DataObjects to access two different databases (not just separate tables, but separate databases with different usernames/pwords) "at the same time" (in the same application). It seems to me that the DataObject class stores it's db connection info in the $GLOBALS['_DB_DATAOBJECT']['CONFIG'] array and always hooks into that global variable to get the db name, pword, etc ... leaving no space to put connection info in for a second dbase ... is there a work around? thanks, -steve
-- Can you help out? Need Consulting Services or Know of a Job? http://www.akbkhome.com

« previous php.pear.general (#9286) next »