function mysql_close() closes the connection. : mysql_close « MySQL Database « PHP






function mysql_close() closes the connection.

 
If the link_id is not specified, mysql_close() will close the most recently opened link. 

The syntax is: int mysql_close ([int link_id])

<?
@mysql_connect("localhost", "web", "asdf") or die("Could not connect to MySQL server!");
@mysql_select_db("company") or die("Could not select company database!");
print "You're connected to a MySQL database!";
mysql_close();
?>
  
  








Related examples in the same category

1.Disconnecting from a MySQL Database