For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > October 2005 > Re: [PEAR] DB_DataObjects... Access more than one database









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PEAR] DB_DataObjects... Access more than one database
Justin Patrin

2005-10-30, 6:59 pm

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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com