$i=mysql_num_rows($resEmp); while ($rowEmp = mysql_fetch_assoc($resEmp)) { echo "". $i ." - ".$rowEmp['autor']."<br><br>"; $i--;