The final step of any database application is to free the database
resources it uses. In MySQL, you free your database resources through
the mysql_close(
)
function:
mysql_close(connection);
If you attempt to use that connection at any point after closing it, you will encounter an error.