Ver Mensaje Individual
  #7 (permalink)  
Antiguo 14/12/2006, 08:58
Avatar de holahola
holahola
 
Fecha de Ingreso: mayo-2005
Ubicación: Móstoles - (Madrid)
Mensajes: 214
Antigüedad: 19 años
Puntos: 1
Re: hacer un array con datos de MySQL

Cita:
Iniciado por mauled Ver Mensaje
Y bueno si tu consulta esta arrogando mas de un resultado, tienes que usar un while() para recorrer el arreglo

Código PHP:
while($elementos mysql_fetch_array($res))
{
  echo 
$elementos["id"];


Creo que tu problema se solucionaría si haces caso a mauled y metes los 2 grupos de if, dentro del bucle while.

Última edición por holahola; 14/12/2006 a las 09:04