![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
16/04/2009, 12:39
|
![Avatar de rickyper](http://static.forosdelweb.com/customavatars/avatar297303_1.gif) | | | Fecha de Ingreso: abril-2009
Mensajes: 182
Antigüedad: 15 años, 9 meses Puntos: 10 | |
Respuesta: Rankeo de Usuarios Hacen algo como esto:
$contador=0;
$sqlR ="SELECT ($contador+1) as contador,user_id,envios,puntos FROM users WHERE user_id = '".$ID."' ORDER BY envios DESC, puntos ASC";
while ($INFO = mysql_fetch_assoc($resultR))
{
?>
Puntos: <?php echo $INFOUSER['puntos']; ?><br />
Envios Totales: <?php echo $INFOUSER['envios']; ?><br />
Usuario Numero: <?php echo $INFOUSER['user_id']; ?><br />
User RANK: <?php echo $INFO['contador']; ?><br />
<?
}
?> |