Código PHP:
   $resulta=$bd->consultar_por_fila("select * from articulo where ((titulo=$titulo) and (subtitulo=$subtitulo)"); 
    titulo -> hola's mundo
El titulo viene de un POST:
Si lo uso tal cual viene con --> hola\'s mundo
Si uso stripslashes queda --> hola's mundo
Pero al usarlos en la sentencia los 2 fallan:
Código PHP:
   Error en 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 ''s mundo) and (subtitulo=) 
    ¿Alguien se ha encontrado con esto y sabe solucionarlo?
Muchas gracias
 
 


