DataObject with Multiple Databases
| From: | Steve Lianoglou | Date: | Thu, 04 Dec 2003 00:59:07 +0000 |
| Subject: | DataObject with Multiple Databases | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-9285@lists.php.net to get a copy of this message | ||
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