Hi all,
Please could you help me solve this problem.
The below query keeps printing the error. Why is this??
My table is answers; Fields: answer_id, answer_text, correct
answer_id(int, not null)
answer_text(varchar, not null)
$qnum and $answer are variables from a form page.
$query2 = "insert into answers (answer_id, answer_text)
values('".$qnum."', '".$answer."')";
$result2 = mysql_query($query2) or die('ERROR);
Please help. It is really annoying.
Thanks.
Kevin.