View Single Post
Old 06-06-2008, 07:38 PM   #2 (permalink)
xenon
The Frequenter
 
xenon's Avatar
 
Join Date: Dec 2007
Location: Bucharest, Romania
Posts: 366
Thanks: 3
xenon is on a distinguished road
Default

Well, that's because you don't pass the fourth parameter to the mysql_connect function as true (it's false by default). Add it and then you'll have different connections.

The definition of the mysql_connect function:

Code:
resource mysql_connect     ([ string $server    [, string $username    [, string $password    [, bool $new_link    [, int $client_flags   ]]]]] )
The $new_link is the parameter you need to set to true if you want separate connections.
__________________
I have optimistic thoughts, even though sometimes (if not always) life's a bitch.
xenon is offline  
Reply With Quote
The Following User Says Thank You to xenon For This Useful Post:
SpYkE112 (06-06-2008)