Skip to content
Advertisement

Getting SQL error while inserting the data into database using MySQL and PHP

I am getting the following error while trying to insert data into database.

Error:

#1064 – You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘Live Your Life Well’. Live Your Life Well’ was a theme designed to encourage peo’ at line 1

I am providing the query below:

JavaScript

How can I resolve this error?

Advertisement

Answer

if insert then

JavaScript

if update then

JavaScript

but following SQL is also executing fine.

JavaScript

this is exact query i tested by myself and it is executing fine.

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement