Hi!
i'm trying to use the statement like of sql but unfortunately I get an error every time I use the query. In a php file I have:
$b = "SELECT Nombre, Link, Img_Pre, Precio, Descripcion, ID, Categoria, Subcategoria
FROM Productos WHERE Nombre LIKE \"%$a%\"";
but i get this error:
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 '\"%THE VALUE OF A%\"' at line 1
If i try the same statement on phpmyadmin i don't have any error. Why with php I get this error?
Thanks!