title: Echo current number of row
body: <p>My $num_rows echos the total row count but I want the current row number.</p>
  
  <pre><code>&lt;?php
  $result = mysql_query('SELECT * FROM texts ORDER BY id desc');
  while($row = mysql_fetch_array($result)){
  $num_rows = mysql_num_rows($result);
  ?&gt;
  &lt;tr class="alt"&gt;
      &lt;td&gt;&lt;?php echo $row['id']; ?&gt;&lt;/td&gt;
      &lt;td&gt;&lt;?php echo $row['title']; ?&gt;&lt;/td&gt;
      &lt;td&gt;&lt;a href="&lt;?php echo $row['orginal']; ?&gt;"&gt;Original&lt;/a&gt;&lt;/td&gt;
      &lt;td&gt;&lt;a href="#"&gt;@English&lt;/a&gt;&lt;/td&gt;
      &lt;td&gt;&lt;a href="#"&gt;&lt;?php echo $num_rows; ?&gt;&lt;/a&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;?php
  }
  ?&gt;
  </code></pre>
  
  <p>Thank you :)</p>