View Single Post
  #3 (permalink)  
Old 12-22-04, 12:42 PM
James Talbot James Talbot is offline
Newbie Coder
 
Join Date: Jul 2004
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Its quite easy an easy way to do what i think you want.

PHP Code:



$sql = mysql_query("SELECT * FROM table ORDER BY something");

// Set rank to 0

$rank = 0;

while($data = mysql_fetch_array($sql)) {


$rank = $rank++;

?>

<p><?=$rank;?></p>
<p><?=$data['username'];?></p>

<?
}
?>
Obviously update that so it suits your needs.
Reply With Quote