PHP ʖ²ἯTH
º/A
mysql_close
Description
mysql_close() closes the connection to the MySQL server that's associated with the specified link identifier. If link_identifier isn't specified, the last opened link is used.
ע: mysql_close() will not close persistent links created by mysql_pconnect().
=ד 1. MySQL close example
?php $link = mysql_connect("localhost", "mysql_user", "mysql_password") or die("Could not connect: ". mysql_error()); print ("Connected successfully"); mysql_close($link);?
See also: mysql_connect(), and mysql_pconnect().
º/A
ưµ㼯A
mysql_client_encoding
ɏһ¼¶
mysql_connect