Ver Mensaje Individual
  #4 (permalink)  
Antiguo 25/11/2007, 10:06
Avatar de Lynxcraft
Lynxcraft
 
Fecha de Ingreso: noviembre-2007
Ubicación: yecla murcia
Mensajes: 1.346
Antigüedad: 16 años, 6 meses
Puntos: 51
Re: extraer una todas las variables por separado

aa ya esta solo tenia que poner el 1 al contador

$resultc=mysql_query("SELECT NombresFROM Sitio");
$nombres = array(); $cont = 1;
while ($fila=mysql_fetch_array($resultc))
{
$nombres[$cont]=$fila[0];
$cont++;
}

así me imprime en orden jeje parece que boi aprendiendo :)