MySQL error

I kept getting an error message from this:

$query = "SELECT * FROM 'questions' WHERE question_number= $number";

You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ''questions' WHERE question_number= 1' at line 116

I removed 's from the statement and it started working without an error message.

$query = "SELECT * FROM questions WHERE question_number= $number";

Leave a Reply