| | |
PHP MySQL Connection CloseTo close a mysql connection we can use mysql_close() function. It can takes a optional parameter as link and closes it. If no link identifier is specified then last opened connection is closed. It is not necessary to use mysql_close() function as all connections are closed at the end of the script execution. Here is the function
mysql_close()
Note that mysql_close() will not close persistent connection created by using mysql_pconnect()
| |
|
|
|
|
|