Google News
logo
MySQL - Interview Questions
Can you tell the difference between Mysql_connect And Mysql_pconnect?
* Mysql_connect
* Used to open a new connection to a database.
* You can open and close the database connection based on the request.
* Opens a page everytime the page is loaded.
 
* Mysql_pconnect
* Used to open a persistent connection in a database.
* You cannot close the database connection.
* There is no need to open and close a connection everytime a page is loaded.
Advertisement