The query I'm trying to run is:
INSERT INTO albumtest (on) VALUES ('3')
Server type: MySQL Server version: 5.6.21
Syntax Error:
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 'on) VALUES ('3')' at line 1
I've been looking over this for almost a day now, and I can't seem to figure out why I'm getting this syntax error.
Full code is here: http://pastebin.com/6mMbZ1Y1
But I know the rest of it is fine, because it can run other queries fine (such as $sql = "INSERT INTO gallery (title) VALUES ('".$title."')";)