Ver Mensaje Individual
  #4 (permalink)  
Antiguo 06/05/2013, 10:58
Avatar de Briss
Briss
 
Fecha de Ingreso: junio-2011
Mensajes: 1.293
Antigüedad: 12 años, 10 meses
Puntos: 12
Respuesta: select de checkbox

le agregue lo siguiente
Código PHP:
if( !empty($_POST['email']))   {
    
$aLista=$_POST['email']; 
foreach (
$_POST['email'] as $v

{
    
mysql_select_db($database_connection$connection);
$query_sql="select * from informesp WHERE Folio IN (".implode(',',$aLista).")"
$res mysql_query($query_sql$connection) or die(mysql_error());
 
$query_sql mysql_fetch_assoc($res);
 

  
  echo 
$query_sql['Folio']; 
y me arrojo lo siguiente 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 '[email protected],[email protected])'