So here's my query:
but for some reason I keep getting the 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..."
and can't figure out why. I checked the database- fields are in the correct format and all of the variables, fields are named correctly in the statement...?
Code:
$sql="INSERT INTO news (date,time,member_id,chapter_id,headline,article,show) VALUES ('$date','$time','$poster_id','$chapter_id','$headline','$article','$show')";
"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..."
and can't figure out why. I checked the database- fields are in the correct format and all of the variables, fields are named correctly in the statement...?