boolean mysql_close(resource $res)
(PHP 4, PHP 5)
| $res | The database connection resource that we want to close. |
|---|---|
| RETURNS | True if the MySQL database connection was closed successfully, false otherwise. |
Closes the link to a MySQL database connection. You should always call this function when you are done communicating with a database in your script.
// open the mysql resource $res = mysql_connect($server, $user, $pass); // close the mysql resource mysql_close($res);