Liquid Fire Posted November 18, 2007 Share Posted November 18, 2007 I have a database class i made however when i create 2 instances of it, it gives me the same connect resource id, is that normal? is there a way in php to have different resource connection id but connect to the same database with the same login on the same server? Quote Link to comment Share on other sites More sharing options...
rajivgonsalves Posted November 18, 2007 Share Posted November 18, 2007 you will have to specify the forth parameter in mysql_connect $link = mysql_connect("hostname","username","password",true); the above will force a new connection Quote Link to comment Share on other sites More sharing options...
Liquid Fire Posted November 18, 2007 Author Share Posted November 18, 2007 thanks 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.