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? Quote Link to comment 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); Quote Link to comment 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? Quote Link to comment 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); 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.