Ver Mensaje Individual
  #5 (permalink)  
Antiguo 15/07/2008, 10:35
Avatar de nes24
nes24
 
Fecha de Ingreso: julio-2005
Mensajes: 746
Antigüedad: 18 años, 10 meses
Puntos: 3
Respuesta: Pro que faya el like=????

Cita:
Iniciado por T4ke0veR Ver Mensaje
$setor="textocomunycorriente";
....ECT * from fferias WHERE CAMPO LIKE '%"$setor"%'");

hasta donde se la sintaxis corresta es

SELECT campo FROM tabla WHERE campo LIKE '%valor%'


suerte


Por ejemplo esto por que mo funciona?????
$cnxp->consultar("SELECT * FROM nombres WHERE NOMBRE LIKE '%editorial%' ");

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 '' at line 1