Re: [PHP-DEV] Multiple MySQL Connections

2006-03-13 Thread Antony Dovgal
On 13.03.2006 18:05, Nick Mitin wrote: I was trying to create 2 mysql connections. $l1 = mysql_pconnect(“localhost”, “user”, “pass”); mysql_select_db(“db1”, $l1); $l2 = mysql_pconnect(“localhost”, “user”, “pass”); mysql_select_db(“db1”, $l2); The $l1 and $l2 now contains different resource ids

[PHP-DEV] Multiple MySQL Connections

2006-03-13 Thread Nick Mitin
I was trying to create 2 mysql connections. $l1 = mysql_pconnect(“localhost”, “user”, “pass”); mysql_select_db(“db1”, $l1); $l2 = mysql_pconnect(“localhost”, “user”, “pass”); mysql_select_db(“db1”, $l2); The $l1 and $l2 now contains different resource ids (#1, #2), but mysql_query(“select * fro