title: How to make ranking system in PHP
body: <p>I have problem. . 
  In my case i make championship. . You know, the winner is determined by the highest value. . 
  Example :</p>
  
  <pre><code>$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'].";
  }
  </code></pre>
  
  <p>It's will show </p>
  
  <ul>
  <li>rank 1 is abc with point 10 </li>
  <li>rank 2 is def with point 9</li>
  <li>rank 3 is ghi with point 8 </li>
  <li>rank 4 is jkl with point 7</li>
  <li>rank 5 is mno with point 7</li>
  <li>rank 6 is pqr with point 3</li>
  <li>rank 7 is stu with point 1</li>
  </ul>
  
  <p>The question. . </p>
  
  <ol>
  <li>look the result. . rank 4 and rank 5 have same point. . how to make
  they in same possition ??</li>
  <li>how to auto detect title of champions like rank 1 is the big boss, rank 2 is a boss, rank 7 is worker ??</li>
  <li>how to tell ex: you in possition 6 ??</li>
  </ol>