Re: php paging of an array...
- From: "Peace" <apeacez@xxxxxxxxx>
- Date: 23 Jan 2006 18:06:09 -0800
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!
.
- References:
- php paging of an array...
- From: oswald
- php paging of an array...
- Prev by Date: PHP Chat system advice
- Next by Date: Re: CRUD Frameowrk in PHP
- Previous by thread: php paging of an array...
- Next by thread: CRUD Frameowrk in PHP
- Index(es):
Relevant Pages
|