Cita:  
					Iniciado por T4ke0veR  
  $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