Limit items per page like in Altavista.
| From: | Maxim Maletsky | Date: | Thu, 31 Aug 2000 04:59:52 +0000 |
| Subject: | Limit items per page like in Altavista. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-14521@lists.php.net to get a copy of this message | ||
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.
In other words just like on Altavista and other search engines.
I'm pretty much sure I can do it, but I don't have much time to play with
it.
Could anyone give me an example of code or a script available somewhere else
that uses the same sorting?
Does anyone know where can I find a script or a class that does that, so it
would make my life easier?
Thanks, gurus!
Maxim Maletsky - maxim@j-door.com <mailto:maxim@j-door.com>
Webmaster, J-Door.com / J@pan Inc.
LINC Media, Inc.
TEL: 03-3499-2175 x 1271
FAX: 03-3499-3109
http://www.j-door.com <http://www.j-door.com/>
http://www.japaninc.net <http://www.japaninc.net/>
http://www.lincmedia.co.jp <http://www.lincmedia.co.jp/>