hey saph.
use a loop and then check the value of the $points in the loops and echo the number
<?
while $row= mysql_fetch_array($result){
$name = $row["name"];
$points = $row["points"];
$x=1; //set the value of the counter
if (!$oldpoints){
$oldpoints=$points;
}
if ($oldpoints == $points){
echo "<tr><td>$x</td><td>$name</td><td>$points</td></tr>";
}else{ //if not $points <> $oldpoints
$x=$x+1;
echo "<tr><td>$x</td><td>$name</td><td>$points</td></tr>";
$oldpoints=$points;
}
} //end the data loop
I have not included the <table> commands
hth
bastien