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