I need to display some ordered numbers, from 1 to 15 right before the ID, so basically, I need a new number on every new row, like this:
- ID NAME KILLS, etc.
- ID NAME KILLS, etc.
- ID NAME KILLS, etc. ...
- ID NAME KILLS, etc.
Here is the code, I failed with "foreach" for some reason, I got a repeating loop 15x15...
$sql = mysql_query('SELECT * FROM `sc_rank` ORDER BY `kills` DESC LIMIT 15',$connect) or die (mysql_error());
while ($get = mysql_fetch_array($sql))
{
echo '<tr><td>'.$get["id"].'</td><td>'.$get["name"].'</td><td>'.$get["kills"].'</td><td>'.$get["deaths"].'</td><td>'.$get["hd"].'</td><td>'.$get["eff"].'%</td><td>'.$get["acc"].'%</td><td>'.$get["damage"].'</td><td>'.$get["shots"].'</td><td>'.$get["hits"].'</td></tr>';