I'm having issues with SQL queries at the moment. I can't figure out why this isn't working:
mysql_query ("INSERT INTO game (id, name, opnt, lctn, year, month, day, q1, q2, q3, q4, ot, q1them, q2them, q3them, q4them, otthem) VALUES ('', '$name', $opnt', '$lctn', '$year', '$month', '$day', '$q1', '$q2', '$q3', '$q4', '$ot', '$q1them', '$q2them', '$q3them', '$q4them', '$otthem')");
I figure I'm missing something somewhere, but all SQL says is:
Error creating table!You have an error in your SQL syntax near '', 'test', '2007', '2', '6', '1', '2', '3', '4', '55', '1t', '2t', '3t', '4t', '' at line 1
(all the numbers represent values I filled in for the form. 1-> q1, etc. )
I'm stumped.