Re: php paging of an array...



in my programs , i list all image file into an array , then show only
file in limited value
then create script to show page number and previous/next btn.

this may help you.

to limit file range:
if ($page=="") {
$page=1;
}
$perpage=50;
$start=$page*$perpage;
$end=$start+$perpage;
for ($i=$start;$i<=$end;$i++)
//do any thing with your file name in $arr[$i]
}

**** THIS SCRIPT I WROTE ON GOOGLEGROUPS AND NOT BEEN TESTED!

.



Relevant Pages