Re: [PHP] Re: php caches mysql connections to same host

2003-06-24 Thread Robert Cummings
See the new_link parameter option for mysql_connect. It should solve your problem. On the other hand, what you are doing is fine, I did it for my pool since I can't use the new_link option because I'm retaining compatibility back to PHP 4.1.2 Cheers, Rob. dorgon wrote: > > for better understan

[PHP] Re: php caches mysql connections to same host

2003-06-24 Thread dorgon
for better understanding: $conn1 = mysql_connect("localhost", "user", "pwd"); mysql_select_db("database1", $conn1); $conn2 = mysql_connect("localhost", "user", "pwd"); mysql_select_db("database2", $conn2); // select two diff. DBs echo $conn1.""; echo $conn2.""; returns: Resource id