dragonusthei Posted October 17, 2006 Share Posted October 17, 2006 Can you connect to two mysql databases at the same time? Link to comment https://forums.phpfreaks.com/topic/24274-can-you-connect-to-two-mysql-databases-at-the-same-time/ 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. Link to comment https://forums.phpfreaks.com/topic/24274-can-you-connect-to-two-mysql-databases-at-the-same-time/#findComment-110315 Share on other sites More sharing options...
dragonusthei Posted October 17, 2006 Author Share Posted October 17, 2006 Thank you :) Link to comment https://forums.phpfreaks.com/topic/24274-can-you-connect-to-two-mysql-databases-at-the-same-time/#findComment-110326 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.