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
How to connect to a DB while connected to another?
Moderator: General Moderators
-
camarosource
- Forum Commoner
- Posts: 77
- Joined: Sat Aug 03, 2002 10:43 pm
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: How to connect to a DB while connected to another?
Yes, you can connect to two databases.
(#10850)
-
camarosource
- Forum Commoner
- Posts: 77
- Joined: Sat Aug 03, 2002 10:43 pm
Re: How to connect to a DB while connected to another?
[Problem solved] 