php mysql script to connect database
<?php
$host=”localhost”;
$user=”root”;
$pwd=”*****”;
$db=”stu”;
$user=”root”;
$pwd=”*****”;
$db=”stu”;
$con=mysql_connect($host,$user,$pwd,$db);
if(!$con)
if(!$con)
{
die(mysql_error());
die(mysql_error());
}
echo ‘connectd’;
mysql_close($con);
?>
echo ‘connectd’;
mysql_close($con);
?>
0 Comments:
Post a Comment