I have problem. . In my case i make championship. . You know, the winner is determined by the highest value. . Example :
$sql = "SELECT bla bla bla FROM `user` ORDER BY `point` DESC";
$result = mysql_query($sql);
$i=0;
while($row = mysql_fetch_array($result)) {
$1++;
echo "rank ".$i." is ".$row['name']." with point ".$row['point'].";
}
It's will show
- rank 1 is abc with point 10
- rank 2 is def with point 9
- rank 3 is ghi with point 8
- rank 4 is jkl with point 7
- rank 5 is mno with point 7
- rank 6 is pqr with point 3
- rank 7 is stu with point 1
The question. .
- look the result. . rank 4 and rank 5 have same point. . how to make they in same possition ??
- how to auto detect title of champions like rank 1 is the big boss, rank 2 is a boss, rank 7 is worker ??
- how to tell ex: you in possition 6 ??