Jump to content

MySQL close function


greggustin

Recommended Posts

You should use mysql_close() when you use a persistent connection when connecting to the MySQL server. You make a persistent connection using the mysql_pconnect() function. However if you used mysql_connect to connect to your MySQL database then you don't need to use mysql_close to close the connection as it will close the connection automatically when PHP finishes parsing the script.
Link to comment
https://forums.phpfreaks.com/topic/26913-mysql-close-function/#findComment-123088
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.