-2

I have a user table in the admin panel that will echo all users to a table, but in the first row of the table I want to echo the number they are so you can easily just scroll to the bottom and find how many users there are, so I want the format to be like this..

#Number | User

    1 | ImSchnebz<br>
    2 | etc...<br>
    3 | etc...
Up_One
  • 5,213
  • 3
  • 33
  • 65
Schnebz
  • 1
  • 3

1 Answers1

0

try this

SELECT @cont := @cont +1, username from tableName
user1844933
  • 3,296
  • 2
  • 25
  • 42