Código PHP:
<?php $sql = "SELECT * from wp_users order by puntos desc";
$q=mysql_query($sql); ?>
<table>
<tbody>
<tr class="even">
<td>Puesto</td><td>Nick</td><td>Puntos de Honor</td></tr>
<?php
$num = 0;
while($row=mysql_fetch_array($q)){
$num++;
?>
<tr><td><?php echo "#".$num; ?></td><td><?php echo $row['user_login']; ?></td><td> <?php echo $row['puntos']; ?> <img src="http://goalid.com/teams/gold.png" /></td></tr>
<?php } ?>
</tbody>
</table>
Código PHP:
<?php
$_pagi_sql = "SELECT * from wp_users order by puntos desc";
$_pagi_cuantos = 50;
include(TEMPLATEPATH.'/paginator.inc.php');
?>
<table>
<tbody>
<tr class="even">
<td>Puesto</td><td>Nick</td><td>Puntos de Honor</td></tr>
<?php
$num = 0;
while($row = mysql_fetch_array($_pagi_result)){
$num++;
?>
<tr><td><?php echo "#".$num; ?></td><td><?php echo $row['user_login']; ?></td><td> <?php echo $row['puntos']; ?> <img src="http://goalid.com/teams/gold.png" /></td></tr>
<?php } ?>
</tbody>
</table>
<?php echo"<p>".$_pagi_navegacion."</p>"; ?>