Page 1 of 1

How to connect to a DB while connected to another?

Posted: Thu Apr 03, 2008 1:11 am
by camarosource
I have a MYSQL database that my PHP script connects to and in this script I have a "WHILE" statement. In this WHILE statement I also want it to connect to another completely different database to look up information while of course still being in the WHILE execution and the database..

How can I do this without interrupting the connection to the other database? Thanks

Re: How to connect to a DB while connected to another?

Posted: Thu Apr 03, 2008 1:42 am
by Christopher
Yes, you can connect to two databases.

Re: How to connect to a DB while connected to another?

Posted: Thu Apr 03, 2008 5:15 am
by camarosource
[Problem solved] :)