Hi, not sure what I’ve done wrong here…
I have the following code
[CODE]
mysql_query(“INSERT INTO bandwusers (firstName,lastName,gender,age,email,dateRegistered,postalAddress,username,
password,newsletter) VALUES
($firstName,$lastName,$gender,$age,$email,$dateRegistered,$postalAddress,$username,$password,$newsletter)”) or die(mysql_error());
However I’m getting error messages saying:
“You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘,Male,,,2007-8-7,,,hhyrl1l,Yes)’ at line 1”
[Note, the values it refers to are the values I’m trying to insert into the db]
This is such a simple little prob, but can’t think what I’ve done wrong… can anyone help? Thanks so so much!! ?