Hi all,
Spent a while looking over this but can't find the problem, it just says: Error in SQL syntax on line 1, near ''
That implies to me a variable hasn't been incorporated properly, anyway, wondered if any of you might be able to "spot the mistake" as I'm at a loss.
$result = mysql_query("INSERT INTO tests (courseid,chapter,question,answera,answerb,answerc,answerd,answere,answerf,reason) VALUES('$courseid','$chapter','$question','$answera','$answerb','$answerc','$answerd','$answere','$answerf','$reason'")
or die(mysql_error());
Thanks in advance,
Chris