Re: Re: Algorithm: Limiting Large Numbers of Pages to 10 visible
| From: | TD - Sales International Holland B.V. | Date: | Fri, 21 Dec 2001 19:09:36 +0000 |
| Subject: | Re: Re: Algorithm: Limiting Large Numbers of Pages to 10 visible | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-78453@lists.php.net to get a copy of this message | ||
On Friday 21 December 2001 05:59, Manuel Lemos stuffed this into my mailbox:
err if it's coming from SQL just use LIMIT
like
select * from <table> limit 0, 10
would give you the first 10 resulst
select * from <table> limit 10, 10
gives you results 11 - 20
select * from <table> limit 20, 10
gives you 21 - 30
etc
> Hello,
>
> > I've got to believe that there's a really slick way of doing this. I've
> > searched the usual
> > places (weberdev.com, devshed.com, zend.com) but there's no really good
> > keywords,
> > and when you search on 'paging" you get too many results to be useful
>
> http://phpclasses.upperdesign.com/browse.html/package/130
>
> Regards,
> Manuel Lemos