Skip to content
Advertisement

SQLSTATE[42000]: Syntax or access violation: 1064 you have an error in your SQL syntax

hi am trying to run a sql query but it gives this error, i have reservations column in stores table and a reservations table which has firstname,lastname or email:

JavaScript

code:

JavaScript

Advertisement

Answer

JavaScript

remove the “,” and that will solve your problem

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