markkanning Posted December 13, 2006 Share Posted December 13, 2006 Hey folks,Is it possible to have two different db connections and, subsequently, 2 different MySQL queries being called on one PHP page? I've got a store locator interface that I'm thinking may involve data from 2 different databases. How can I make that happen?Mark Quote Link to comment Share on other sites More sharing options...
artacus Posted December 13, 2006 Share Posted December 13, 2006 Yep.[code]$con1 = mysql_connect(...);$con2 = mysql_connect(...);...$result = mysql_query($query,$con1);$result2 = mysql_query($query2,$con2);[/code] Quote Link to comment Share on other sites More sharing options...
markkanning Posted December 13, 2006 Author Share Posted December 13, 2006 I'll give it a try...Thanks, Man!!!Mark Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.