Start connection php to mysql database.
<?php
$con = mysql_connect("localhost","peter","abc123"); // by default password of localhost is "".
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
// some code
?>
closing connection
<?php
$con = mysql_connect("localhost","peter","abc123"); // by default password of localhost is "".
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
// some code
?>
Thank for guides !
ReplyDeleteThanks for using my blog....
Delete