MySQL error - “You have an error in your SQL syntax”
问题 The error message I got: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''word','group','selfnote') VALUES ('item','a','note to self')' at line 1 The PHP code is: $toq="INSERT INTO articles ('word','group','selfnote') VALUES ('$ttle','$wrdr','$snote')"; I was trying to find solutins, but they didn't seem to work as echoing gives: INSERT INTO articles ('word','group','selfnote') VALUES ('item','a','note to