Posted by Steve on 10/07/56 11:28
> I have a page that outputs data about a tv show, all is working fine,
> however when a query returns for example 14 results I want to be able to
> output the number that corresponds to the position in the result, alongside
> the details.
Just before the while loop starts:
$counter = 0;
Immediately after the while loop starts:
$counter++;
Wherever you want to display the row number:
"...<span>$counter</span>..."
---
Steve
Navigation:
[Reply to this message]
|