Haneef Puttur

Simple script to test MYSQL Connectivity


mysql_connect(“hostname”, “username”, “password”) or die(mysql_error());
echo “Connected to MySQL
“;
mysql_select_db(“dbname”) or die(mysql_error());
echo “Connected to Database”;
?>

Haneef Puttur

***************
# Knowledge is like Water, Let it FLOW.. Don’t let it Rotten somewhere.. 

.