View Single Post
  #6  
Old 15th August 2006, 11:40
sjau sjau is offline
Local Meanie
 
Join Date: Apr 2006
Location: Switzerland
Posts: 1,146
Thanks: 4
Thanked 55 Times in 51 Posts
Default

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";

?>
Reply With Quote