can you test this script and tell me the output?
Code:
<?
//Global variables:
$username = ""; // Username for database here
$password = ""; // Password for database here
$db_host = "localhost"; // DB Server
$db_name = ""; //name of your database here
// Connect to DB
mysql_connect("$db_host","$username","$password")
or die("Unable to connect to SQL server!");
mysql_select_db("$db_name")
or die("Unable to select database!");
echo "Connection established to $db_name";
?>