Ver Mensaje Individual
  #1 (permalink)  
Antiguo 01/10/2008, 07:53
isralusky
 
Fecha de Ingreso: julio-2008
Mensajes: 12
Antigüedad: 15 años, 10 meses
Puntos: 0
Paginar php con sql

Tengo el siguiente código php con mysql y quisiera que debajo de la consulta me mostraran 1,2,3,4, etc... para ir mostrando los siguientes segistros.
Me intentado buscar por el foro y no he encontrado nada.

<?php

include("../conectar_puntos.php");

$query=mysql_query("SELECT * FROM usuarios ORDER BY nick ASC limit 0,20");
while($datos = mysql_fetch_array($query)){
$query=mysql_query("SELECT * FROM usuarios ORDER BY nick ASC limit 0,20");
while($datosuser=mysql_fetch_array($query)){
echo "<table width='200' border='0'>
<tr>
<th width='150'><div align='center'>".$datosuser[nick]."</div></th>
<th width='50' ><div align='center'>".$datosuser[puntos]."</div></th>
</tr>
</table> ";
}}?>