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? Link to comment https://forums.phpfreaks.com/topic/77791-solved-getting-same-mysql-connection-with-php/ 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 Link to comment https://forums.phpfreaks.com/topic/77791-solved-getting-same-mysql-connection-with-php/#findComment-393759 Share on other sites More sharing options...
Liquid Fire Posted November 18, 2007 Author Share Posted November 18, 2007 thanks Link to comment https://forums.phpfreaks.com/topic/77791-solved-getting-same-mysql-connection-with-php/#findComment-393921 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.