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
0
u/brilliantmojo Oct 13 '19
Does your DB login have all privileges?