dragonusthei Posted October 17, 2006 Share Posted October 17, 2006 Can you connect to two mysql databases at the same time? Quote Link to comment Share on other sites More sharing options...
redbullmarky Posted October 17, 2006 Share Posted October 17, 2006 yes - just use two (or even more) handles for each DB you're connecting to.[code]$first_db = mysql_connect('localhost', 'mysql_user', 'mysql_password');$second_db = mysql_connect('localhost', 'mysql_user2', 'mysql_password2');[/code]and use them as normal. Quote Link to comment Share on other sites More sharing options...
dragonusthei Posted October 17, 2006 Author Share Posted October 17, 2006 Thank you :) 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.