Ver Mensaje Individual
  #2 (permalink)  
Antiguo 17/04/2008, 12:06
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Re: mysql_fetch_array($sql)

Prueba así:
Código PHP:
$cons="SELECT nombre FROM alumnos";
$sql=mysql_query($cons);

for(
$x=0;$x<10;$x++)
{

$y=$x+1;
echo
" $y ciclo<br>";

//AQUI

while($A=mysql_fetch_array($sql))
{
nombre=$A["nombre"];

echo
"---> $nombre<br>"
}
mysql_data_seek$sql); // Esto es lo importante
//O AQUI

Saludos.