I am printing the result of a query in a HTML table, I want each HTML row to have a number like:
1 2 3 4 5 6 7
How do I achive this, tried messing with a for loop, but I a bit lost, can anyone help?
$number = 1; while ($row = mysql_fetch_array($result)) { //display number and data $number++; }
and added $count = -1;
for starting on 0 🙂