Re: DB_DataObjects... Access more than one database
| From: | Justin Patrin | Date: | Sun, 30 Oct 2005 20:39:34 +0000 |
| Subject: | Re: DB_DataObjects... Access more than one database | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-21710@lists.php.net to get a copy of this message | ||
On 10/30/05, Ed Greenberg <edg@greenberg.org> wrote:
> I have a need to access more than one MySQL database within a single
> script. Any way to do this with DB_DataObjects?
>
If you're not accessing them all at once then it should be as simple
as replacing the config for each DB. Read a new ini file for each one,
for instance.
> Basically, what I need to do is:
>
> for each database
> connect
> select
> for each line
> retrieve
> output
> end for
> disconnect
> end for
>
> Perhaps I should just skip DB_DataObjects and use basic PHP?
>
> </edg>
>
> --
> PEAR General Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Justin Patrin