Re: Limit items per page like in Altavista.
| From: | scottrus at ipass dot net | Date: | Thu, 31 Aug 2000 01:28:26 +0000 |
| Subject: | Re: Limit items per page like in Altavista. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-14555@lists.php.net to get a copy of this message | ||
On Thu, Aug 31, 2000 at 01:59:52PM +0900, Maxim Maletsky wrote:
> Hi!
>
> One of my script is getting data from mySQL database and then lists it all
> on one page with loop,
> What I need is to create a limit, let's say 10 items per page, then if we
> got more then 10 items a link on the bottom will say: page2, page3, page4..
> etc basing on the amount of items existing there.
I needed to do the same thing and ended up using the code at www.phpbuilder.com.
The script needed a small tweak (The first row of data is 0, not 1 in MySQL) but
asside from that was stright forward enough to use. You'll find it in the DB
section under the Columns link.
--
Scott