CodeIgniter Forums
sequence number - Printable Version

+- CodeIgniter Forums (
+-- Forum: Archived Discussions (
+--- Forum: Archived Development & Programming (
+--- Thread: sequence number (/showthread.php?tid=12456)

sequence number - El Forum - 10-19-2008

Hello All....

Quote:How to make sequence number in view???? if in smarty {counter}, how about CI???

Thank You.

sequence number - El Forum - 10-20-2008

[eluser]Pascal Kriete[/eluser]
I'm not sure what you're trying to accomplish. Is this in a loop?
$x = 0;
foreach($something as $some => $thing): ?&gt;
    &lt;?= $x++ ?&gt;
&lt;?php endforeach; ?&gt;