Computer Applications

Saturday, January 23, 2010

Closing a Connection in PHP & MySQL.

Code:

$con = mysql_connect("localhost","peter","abc123");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_close($con);
?>

No comments:

Post a Comment