MySQL query won't update database [closed]

You need to read up on sql injection and switch to PDO / mysqli and prepared statements.

The problem you have however, is caused by a reserved word, EXISTS, so the start of your query would have to look like:

INSERT INTO newsletteroptions (email, `exists`) VALUES ...

Leave a Comment