View Single Post
Old 06-26-2012, 05:26 PM   PM User | #4
DrDOS
Senior Coder

 
Join Date: Sep 2010
Posts: 1,155
Thanks: 10
Thanked 148 Times in 148 Posts
DrDOS is infamous around these parts
If you know the count of the array then you can use a for loop. I happen to have the code for a for loop right in my Clipboard.
PHP Code:
for ( $i $i count($curr_items) ; $i++ )
{
if(
$i%24==0Start a new page.
Whatever your are doing goes here.

Starts a new page every 24th item.
DrDOS is offline   Reply With Quote