Use mysql_connect or mysql_pconnect?
Posted: Sun Oct 07, 2007 10:06 am
Hi
Let us say you have a website where you, in a lot of different classes, connect to your database to
retrieve/update information.
Should you then use mysql_connect or mysql_pconnect?
Or should you only once (for instance in "index.php"), create the connection, and then pass that link
to all classes that need to work with the database?
What are the advantages and disadvantages using mysql_connect, mysql_pconnect?
Let us say you have a website where you, in a lot of different classes, connect to your database to
retrieve/update information.
Should you then use mysql_connect or mysql_pconnect?
Or should you only once (for instance in "index.php"), create the connection, and then pass that link
to all classes that need to work with the database?
What are the advantages and disadvantages using mysql_connect, mysql_pconnect?