php code to connect to database
<?php
if(!mysql_connect("localhost","root",""))
{
die('Connection problem'.mysql_error());
}
if(!mysql_select_db("dbdandy"))
{
die('Database connection problem'.mysql_error());
}
?>
if(!mysql_connect("localhost","root",""))
{
die('Connection problem'.mysql_error());
}
if(!mysql_select_db("dbdandy"))
{
die('Database connection problem'.mysql_error());
}
?>
Comments
Post a Comment