Hello group,
the script on this page i use to show the standings in a league. It is shown
in a table on my webpage. But I don't know how to number the rows so that
the first row is number 1 the second 2 and so on, so that the numbers are
equal to the standings.
Who has a solution for this.
Thnx.
RotterdamStudents
SCRIPT
================================================== ====================
<?php
....[CUT]
$str_requete = "SELECT id,name,played,points FROM EkStandings ORDER BY
points ASC";
$result_articles = mysql_query ($str_requete,$ezine_db) or
ezine_mysql_die();
print ('<table width=75% border=1 bordercolor=#5B441B
cellspacing=0><font face=arial size=2><B>
<tr><td><font face=arial size=2 color=#957745><B>Position:</B></td>
<td><font face=arial size=2 color=#957745><B>Name:</B></td>
<td><font face=arial size=2 color=#957745><B>Played:</B></td>
<td><font face=arial size=2 color=#957745><B>Points:</B></td>
');
while ($articleDb =mysql_fetch_object($result_articles))
{
print("
<tr><td><font face=arial size=1 color=#5B441B>Here i want the position
numbers</td>
<d><font face=arial size=1 color=#5B441B>$articleDb->name</td>
<td><font face=arial size=1 color=#5B441B>$articleDb->played</td>
<td><font face=arial size=1 color=#5B441B><b>$articleDb->points</td>
</tr>
");
}
print ('</font></table>');
?>