May 2005
Intermediate to advanced
352 pages
14h 39m
English
mysql_close( )
mysql_close([connection])This closes the current or last MySQL
connection, or a given connection. The function returns true if
it's successful; false if unsuccessful. This
function will not close persistent connections started with
mysql_pconnect( ).
...
$connection = mysql_connect('localhost', 'russell', 'dyer');
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.
Read now
Unlock full access