r/PHPhelp • u/[deleted] • Oct 13 '19
INSERT INTO sql table not working.
Am I inserting rows into my table correctly? This doesn't work for some reason.
$conn->exec("INSERT INTO Questions_Table (ID, Question, Votes) VALUES ($num_rows, $submitted_question, 1)");
9
Upvotes
2
u/PopeInnocentXIV Oct 13 '19
Are
$num_rowsand$submitted_questionproperly quoted and escaped?