$x = 1;
 
 while($result = mysql_fect_array($query)){
 
 echo $x."-".$result;
 
 $x=++;
 }