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
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
2 matches
Mail list logo