![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
21/09/2012, 10:54
|
![Avatar de Patriarka](http://static.forosdelweb.com/customavatars/avatar387800_5.gif) | | | Fecha de Ingreso: enero-2011 Ubicación: Moreno, Buenos Aires, Argentina
Mensajes: 2.851
Antigüedad: 14 años Puntos: 288 | |
Problema con query ohp-mysql Error de consulta: :
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 'WIMBLEDON' - MATTHEW PERRY - LOS ANGELES, CA - SEPT. 13, 2004' ' at line 2
QUERY: SELECT * FROM file_informacion_value WHERE fileinfoval_value = 'FEAT 6006 - C01 - IMAGE9960066B - FILM PREMIERE OF 'WIMBLEDON' - MATTHEW PERRY - LOS ANGELES, CA - SEPT. 13, 2004' AND fileinfo_id = '167'
Hola amigos, evidentemente tengo un problema con las comillas,
use mysql_real_escape_string y no me soluciona el probleme.
el codigo php es este:
$value = "FEAT 6006 - C01 - IMAGE9960066B - FILM PREMIERE OF 'WIMBLEDON' - MATTHEW PERRY - LOS ANGELES, CA - SEPT. 13, 2004";
$value = mysql_real_escape_string($value);
$sql = "SELECT * FROM file_informacion_value WHERE fileinfoval_value = '$value' AND fileinfo_id = '167' "; |