Complete PHP MySQL Reference
The mysql_close() function closes a non-persistent MySQL connection.
This function returns TRUE on success, or FALSE on failure.
| Parameter | Description |
|---|---|
| connection | Optional. Specifies the MySQL connection to close. If not specified, the last connection opened by mysql_connect() is used. |
Tip: Using mysql_close() isn't required, as non-persistent connections are automatically closed at the end of the script.
Complete PHP MySQL Reference
Your message has been sent to W3Schools.