Skip to content
Advertisement

Search MySQL query in PHP [closed]

I’m trying to make a search query but I got it wrong

Here is my error that I got:

Fatal error: Uncaught PDOException: SQLSTATE[42000]: Syntax error or access violation: 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 ‘: search’ at line 1

And here is my code:

JavaScript

Advertisement

Answer

Please try this hope this may resolve your issue.

JavaScript

Thanks

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