mysql_close()
bool mysql_close([connection])This function closes the current or last MySQL connection, or
a given connection. The function returns true if it’s successful, and
false if it’s unsuccessful. This function will not close persistent
connections started with mysql_pconnect().
Here is an example:
...
$connection = mysql_connect('localhost', 'ricky', 'adams');
mysql_select_db('workrequests', $connection);
...
mysql_close($connection);
...If a script has opened only one connection to MySQL, it’s not necessary to specify the connection link to close as shown here.