Close MySQL database connection
Editor’s note: You might wonder if you can open a connection with the MySQL database, but can you close the connection with the MySQL database?
First, connect to the database:
<?php $connection = mysql_connect("Host Name", "User Name", "User Password"); ?>
Now to close the connection, we use mysql_close( );
<?php mysql_close($connection); ?>





