A
Anonymous
Guest
lol... it seems that your @ sign before calling mysql_connect ignores any error that occured, AFAIK @ symbol is used to bypass any error on script/code so users won't see original error message (i've found it on some PHP security from O'Reily)
try remove the @ so your code will be :
try remove the @ so your code will be :
Code:
$username = "*******";
$password = "*******";
$hostname = "localhost";
//connection to the database
echo "test";
$connection = mysql_connect($hostname, $username, $password)
or die ("Could not connect to the database server
at this time. Please try later.");
echo "Database Connected!";