Hi all,
I am attempting to insert data into a MySQL database from a form using the following code (it is from a textbook but I have modified it a little) and I get the following error :
MySQL error: 1136 : Column count doesn't match value count at row 1 (# 256).
$query = "INSERT INTO customer VALUES (NULL, " .
"\"" . $formVars["surname"] . "\", " .
"\"" . $formVars["firstName"] . "\", " .
"\"" . $formVars["title"] . "\", " .
"\"" . $formVars["address1"] . "\", " .
"\"" . $formVars["address2"] . "\", " .
"\"" . $formVars["city"] . "\", " .
"\"" . $formVars["zipcode"] . "\", " .
"\"" . $formVars["phone"] . "\", " .
"\"" . $formVars["fax"] . "\", " .
"\"" . $formVars["email"] . "\", " .
0 . ")";
No matter how much I play with it I can't get it to work.....please help old dumbo here.....:rolleyes: