Ver Mensaje Individual
  #8 (permalink)  
Antiguo 14/07/2003, 02:43
Enea
 
Fecha de Ingreso: junio-2003
Mensajes: 744
Antigüedad: 20 años, 9 meses
Puntos: 0
Que hago mal? me dice que tengo un fallo en el foreach... No hay manera no me sale Me ayudais por favor? Muchisimas gracias por todo !

if ($array_consulta['PER_interprete'])
{
$array_consulta['PER_interprete'] = strtoupper(trim(stripslashes($array_consulta['PER_interprete'])));
if (!eregi("^[0-9A-Za-z*%ªº ]*$",$array_consulta['PER_interprete']))
{
$array_consulta['PER_interprete']="*";
}
}

//Construimos la senctencia SQL de busqueda
$local_query = "SELECT * FROM $nomtabla WHERE";

foreach($array_consulta as $clave => $valor)
{
if (strstr ($clave,"PER_"))
{
$local_query .=" AND ".$clave." LIKE '".$valor."'";
}
}

echo "$local_query";
}