[eluser]Joakim_[/eluser]
[quote author="Dagobert Renouf" date="1214331108"]I would add a $i variable that you would increment at each returning row.
Then you check :
Code:
if(is_int($i / 10) == TRUE)
to echo your div.
However there's probably a better way to do this.[/quote]
Thank you a lot for your reply and help. I'm not sure where to add the $i variable?
I have the PHP code like this:
Code:
<?php foreach($query->result() as $row): ?>
<li><?php echo $row->item ?></li>
<?php endforeach; ?>
Thank you!