How To Terminate MySQL Database Connection With mysql_close()
- Forums
- MySQL
- How To Terminate MySQL Database Connection With mysql_close()
if you want to know how to terminate a mysql connection read this post i have written that will show you how to stop or end a connection to your database using php [926], Last Updated: Sat May 18, 2024
wallpaperama
Wed Feb 16, 2011
0 Comments
796 Visits
i am writing this short tutorial here because i wanted to share something very important if you are a PHP and mySQL programmer. i have noticed that many of the scripts available in open source do not end the mysql connection they made at the begining of the script.
while php will end the database connection after the script has been excuted, its always good practice to end the connection. so be sure to use the mysql_close($DBASE); at the end of every script.
NOTE: $DBASE: change to whatever you have set in your connection
hope that helps