$con = mysql_connect("localhost","dbUserName","p@assword"); if (!$con){die('Could not connect: ' . mysql_error());} //some code
Close Connection
$con = mysql_connect("localhost","dbUserName","p@assword"); if (!$con){die('Could not connect: ' . mysql_error());} // some code mysql_close($con);
No comments:
Post a Comment