add a number in while loop
<pre><code>     if ($num_rows &gt; 0)
                {
                    while($row=mysql_fetch_assoc($res))
                    {
                        $fromuser=$row['username'];
                        $comment=$row['comment'];
                        $commentdate=$row['date'];

                        $date=strtotime($commentdate);
                        $final_date=date("g:i a", $date);  
                        $final_date2=date("F j Y", $date);

            ?&gt;


            &lt;table align="center" width="100%"style='border-top: 1px dotted;'bgcolor="#eeeeee" &gt;
            &lt;tr&gt;&lt;td&gt;&lt;?echo "&lt;a href=\"userprofile.php?user=$fromuser\"&gt;&lt;b&gt;$fromuser&lt;/b&gt;&lt;/a&gt; commented:\n";?&gt;&lt;/td&gt;&lt;/tr&gt;
            &lt;tr&gt;&lt;td&gt;&lt;?echo "at $final_date on $final_date2\n";?&gt;&lt;/td&gt;&lt;/tr&gt;
            &lt;tr bgcolor="#ffffff"&gt;&lt;td&gt;&lt;?echo "$comment\n";?&gt;&lt;/td&gt;&lt;/tr&gt;
            &lt;/table&gt;&lt;br&gt;
            &lt;?
                    }
                }
                else 
                {
                    echo"There are currently no comments on this user";
                }
            ?&gt;
</code></pre>

<p>I am looking for a way to add a number to each comment. So 1, 2, 3, 4, etc in DESC order.
I can't think how I can do this?</p>
