$array=array(); while ($row=mysql_fetch_array($result)) { $array[]=$row; } echo $array[4]['indice']; // mostrara el campo indice del quinto registro