I have the MySQL INSERT ROW below. For some reason I keep getting a syntax error with this. Any ideas? I have checked my table multiple times to make sure those table columns exist.
INSERT INTO content_pieces (content_id, order, piece, type) VALUES ('$content_id', '$key', '$indiv_piece', '$piece_attr')
orderis a reserved word in mySQL.You need to wrap it in backticks:
or – better – use a different column name.