tags:

views:

33

answers:

3
+5  A: 

are you missing a semi colon after 'pass' ?

justinl
yeah, third code line.
Tor Valamo
+1  A: 

You're missing a semicolon on the $pass line.

nickf
+1  A: 

you are missing ; after pass and use following syntax

   $db_host=" "; //the host name of the sql server (if you do not know, leave as localhost. usually works)
   $db_name=" ";  //the name of the database
   $db_user=" ";  //the username that is associated with the database
   $db_pass=" "; //the password for the username

   $dbc=mysql_connect($db_host,$db_user,$db_pass) OR DIE (mysql_error());
   $dbs=mysql_select_db($db_name) OR DIE (mysql_error());