Query failed : INSERT INTO `feedback` VALUES (now(), 10, 's')Column count doesn't match value count at row 1
Can someone help please?
$ta_feedback = addslashes($ta_feedback);
$query = "INSERT INTO `feedback` VALUES (now(), $rb_feedback, '$ta_feedback')";
Your insert has more or less columns that are actually in the table.
I see the problem now, I was blind, it has 3 values to submit, and it's defining 5 rows on the table.
If the other columns are nullable, then you can specify only three in the query, you just have to tell it which three:
INSERT INTO table (col2, col4, col5) VALUES (now(), $var, '$anothervar')
They don't need to be nullable, so long as they have default values defined.
Originally Posted by Dan Grossman
I just changed the query to
$query = "INSERT INTO `feedback` VALUES ('', '', now(), '$rb_feedback', '$ta_feedback')";