I get this error for the following code extract....yet I have not used any "and",
also as best I can have checked matching of curlies and parentheses.
Any helpwould be appreciated...Thanks.
// add a pass/fail and number of wrong answers to the student answer submission record
echo "....adding PASS or FAIL to your submission record<br>";
if ($wrong_answers !=0) { // if one or more wrong answers
$pf = "f" ; // set variable to f for fail
$add_pass_fail = " UPDATE studentanswers SET
passfail = '$pf',
num_wrong = $wrong_answers
WHERE id = '$last_id' ";
// do query and error routine
mysql_query($add_pass_fail, $conn) or die(mysql_error("Cant add PASS/FAIL status to student submission"));
}