That function means connected persistantly, as I do not understand it between the normal function.
"The reasonable man adapts himself to the conditions that surround him... The unreasonable man adapts surrounding conditions to himself... All progress depends on the unreasonable man." - George Bernard Shaw
The Following User Says Thank You to Orc For This Useful Post:
mysql_pconnect creates a 'persistent' connection therefore the link to the database is always open, mysql_connect however isnt like that and its links are closed when the script finishes and therefore must be reopened.
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)