monkeybidz Posted November 10, 2007 Share Posted November 10, 2007 I need more than one mysql_connect on the same page, do I need to name them different? If so how? Link to comment https://forums.phpfreaks.com/topic/76734-multiple-mysql_connect/ Share on other sites More sharing options...
rajivgonsalves Posted November 10, 2007 Share Posted November 10, 2007 here you go $link1 = mysql_connect("host","username","password"); $link2 = mysql_connect("host","username","password",true); Link to comment https://forums.phpfreaks.com/topic/76734-multiple-mysql_connect/#findComment-388470 Share on other sites More sharing options...
monkeybidz Posted November 10, 2007 Author Share Posted November 10, 2007 It's not working, I it is bringing up some other results, may be from one of my includes. Is there another unique name I can give it? Link to comment https://forums.phpfreaks.com/topic/76734-multiple-mysql_connect/#findComment-388471 Share on other sites More sharing options...
rajivgonsalves Posted November 10, 2007 Share Posted November 10, 2007 you have to use the link id in all your mysql commands mysql_select_db(DB_NAME,$link1); mysql_query($query,$link1); Link to comment https://forums.phpfreaks.com/topic/76734-multiple-mysql_connect/#findComment-388484 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.