Connection Setting for Database in PHP (Online Admission project) File Name "db.php"
<?php
$con = mysql_connect("localhost", "root" , "");
if (!$con)
{
header("HTTP/1.0 503 Service Unavailable");
die('We are experiencing heavy traffic.<BR>Kindly visit us again in few minutes.');
}
else
mysql_select_db("onlineadmission", $con);
?>
<?php
$con = mysql_connect("localhost", "root" , "");
if (!$con)
{
header("HTTP/1.0 503 Service Unavailable");
die('We are experiencing heavy traffic.<BR>Kindly visit us again in few minutes.');
}
else
mysql_select_db("onlineadmission", $con);
?>
0 Comments:
Post a Comment