Hi everyone Can someone tell me under what circumstances mysql_connect would be a better choice than mysql_pconnect= I'm not sure I understand it properly.
Cheers
Nick
If a lot of people visit your site and you have a counter that pass the same variables, then mysql_pconnect would run faster. Basically it keeps the connection alive and doesn't have to reconnect for every visit.
The mysql_connect function is preferable if your script connects to several dbs on the same server during one server process. This would save bandwidth.