PDA

View Full Version : How to connect to a DB while connected to another?


camarosource
04-03-2008, 07:08 AM
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 interupting the connection to the other database? Thanks

_Aerospace_Eng_
04-03-2008, 07:15 AM
Just be sure to pass in the connection identifier to the mysql_query function.

camarosource
04-03-2008, 11:17 AM
[Problem Solved] Thanks :)