View Single Post
Old 06-28-2008, 01:56 PM   #6 (permalink)
sketchMedia
The Prestige
Advanced Programmer Top Contributor Good Samaritan 
 
sketchMedia's Avatar
 
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
sketchMedia is on a distinguished road
Default

Quote:
You are wrong about #2.
I dont think i am, i am fully aware that mysql_connect reuses a connection, but i was referring to the connections after the page has finished executing (known as persistent) that are still open. Logically if you open a connection with mysql_connect when the code finishes it closes the connection as it isn't persistent, therefore if you then run he script again it must create a new connection thus my statement is correct. Notice that the manual also says:
" If a second call is made to mysql_connect() " indicting a call to this function in the same script execution.
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
sketchMedia is offline  
Reply With Quote