$sql=mysql_query("select * from web order by id DESC",$conexion) or die("Problemas en el select:".mysql_error());$i = 0;while ($row=mysql_fetch_array($sql)){echo ++$i.$row['nombre'];}