php mysql script to connect database

php mysql script to connect database

<?php
$host=”localhost”;
$user=”root”;
$pwd=”*****”;
$db=”stu”;
$con=mysql_connect($host,$user,$pwd,$db);
if(!$con)
{
die(mysql_error());
}
echo ‘connectd’;
mysql_close($con);
?>
Previous Post
Next Post
Related Posts

0 Comments: