What was the problem you had? Error message? Blank screen?
You need to replace the line quoted above with something like the following:
Code:
$userid = "YOUR SQL USERNAME";
$password = "YOUR SQL PASSWORD";
$dbname = "YOUR DATABASE NAME";
$domain = "localhost";
mysql_connect("$domain","$userid","$password");
mysql_select_db("$dbname") or die(mysql_error());