Ver Mensaje Individual
  #6 (permalink)  
Antiguo 12/04/2007, 06:59
usermax
(Desactivado)
 
Fecha de Ingreso: diciembre-2006
Mensajes: 529
Antigüedad: 17 años, 5 meses
Puntos: 11
Re: Array con mysql_fetch_array

Hola:
Código PHP:
//EN PHP NO ES NECESARIO DECLARAR UNA VARIABLE ANTES DE USARLA
while($resultado=mysql_fetch_array($con))
$ArrayDatos[] = $resultado["Nombre"];
// AL USAR LOS CORCHETES ASI [] SE IRÁ INCREMENTANDO SOLO[/color]
//Mostrar el primer elemento del array, por ejemplo
echo $ArrayDatos[0]; 
SALUDOS!

Última edición por usermax; 12/04/2007 a las 07:04