Advertisement
Guest User

Erro SQL

a guest
Mar 24th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. SELECT * FROM products WHERE title LIKE '%?%' OR title LIKE '%?%'
  2. 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 MariaDB server version for the right syntax to use near 'title LIKE '%?%' OR title LIKE '%?%'' at line 1 in D:\www\git\luizcouros\painel\dist\php\_function.php:176 Stack trace: #0 D:\www\git\luizcouros\painel\dist\php\_function.php(176): PDOStatement->execute(Array) #1 D:\www\git\luizcouros\index.php(32): getProductByName(Array, 'title LIKE '%?%...') #2 {main} thrown in D:\www\git\luizcouros\painel\dist\php\_function.php on line 176
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement