why do not p in mysql_connect work?
View Single Post
06-28-2008, 01:56 PM
Join Date: Oct 2007
Location: Manchester, UK
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
" indicting a call to this function in the same script execution.
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
View Public Profile
Send a private message to sketchMedia
Visit sketchMedia's homepage!
Find More Posts by sketchMedia