I can’t figure out what this MySQL query isn’t working.
$add = mysql_query("INSERT INTO `members` (`id` ,`grade` ,`last` ,`first` ,`email` ,`schedule` ,`phone` ,`committees` ,`dues`)
VALUES (NULL , '$grade', '$last', '$first', '$email', '$schedule, '$phone', '$committees', '$dues'
)");
I get this error:
Invalid query: 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, ‘FBLA Week\nPartnership w/Business’, ‘1’ )’ at line 2
I can’t see what the problem is with the code. Does anyone have an idea?
You’re missing a closing quote after
$schedule.