Ver Mensaje Individual
  #1 (permalink)  
Antiguo 13/11/2014, 13:22
Avatar de Briss
Briss
 
Fecha de Ingreso: junio-2011
Mensajes: 1.293
Antigüedad: 12 años, 10 meses
Puntos: 12
error al utilizar implode

Hola a todos estoy haciendo la siguiente consulta
mysql_select_db($database_connection, $connection);
$query_uno= "SELECT * from conceptos where nombre IN ".implode ("','",$nombres)."";
$uno = mysql_query($query_uno, $connection) or die(mysql_error());


pero tengo el siguiente 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 'CONCEPTO 1','CONCEPTO 2','CONCEPTO 3' at line 1


desde ya gracias