[Solved] INSERT statement does not work [closed]


“condition” is a MySQL reserved word. If you have to use it as a column name wrap it in backticks (`)

EDIT

And escape any strings that you’re planning on storing in the database. That allows the db to handle quotes (‘) in the actual string itself.

As suggested by Joop, using prepared statements avoids this problem.

The mysql extension is almost dead in the water these days (aside from millions of antiquated tutorials on the web). Consider moving to mysqli or PDO

3

solved INSERT statement does not work [closed]