Jump to content

List items from MySQL and rank


timmah1

Recommended Posts

I have a statement that selects everything from the database and lists them in order of money from highest to lowest.

 

How do I put the rank (numbers, 1, 2, 3,..) next to the information?

I tried using

<ol><li>

but that just puts a 1. beside everyone.

 

thanks in advance

Link to comment
https://forums.phpfreaks.com/topic/110623-list-items-from-mysql-and-rank/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.