[eluser]gvillavizar[/eluser]
[quote author="Boris Strahija" date="1254874050"]You could also do it like this:
Code:
<?php
foreach ($news->result() as $i=>$item) :
...
endforeach
?>
This way you don't need to increment $i, it is done automatic since $i is the key of the object list.[/quote]
Wow, that one will save me some code.
Thanks.