Forum Moderators: coopster
//usually localhost
$hostname = "your database host";
//this will print Unable to connect to mysql
//if you do something wrong or it cannot
//connect
$dbh = mysql_connect($hostname, $username, $password)
or die("Unable to connect to MySQL");
print "Connected to MySQL<br>";
mysql_close($dbh);
?>
If that works let me know and we can go from there.