> Closing a Connection in mysql ~ Online tutorial

Closing a Connection in mysql

Closing a Connection
The connection will be closed as soon as the script ends. To close the connection before, use the mysql_close() function.

?php
$con = mysql_connect("localhost","root","");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
// some code
mysql_close($con);
?>

Please Give Us Your 1 Minute In Sharing This Post!
Please Give Us Your 1 Minute In Sharing This Post!
SOCIALIZE IT →
FOLLOW US →
SHARE IT →
Powered By: BloggerYard.Com

0 comments: