Re: Search Result Navigation
| From: | Joao Prado Maia | Date: | Mon, 04 Dec 2000 23:22:41 +0000 |
| Subject: | Re: Search Result Navigation | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-28664@lists.php.net to get a copy of this message | ||
On Tue, 5 Dec 2000, Joseph H Blythe wrote:
> Hello,
>
> I remember some time ago (I can't find the thread now) some discussion
> about making the navigational numbers at the bottom of a lot of search
> engines results pages fo example:
>
> Pages: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | Next >>
>
> can anyone point me to an example of how to do this with php/mysql, I
> already know how to do the next and previous stuff using the LIMIT
> statment of mysql but need some thoughts on how to make the right
> numbers for the amount of results in the query.
I did an article about it with the source code for a class I wrote
specially for that at O'Reilly Network PHP Devcenter. Here's the URL:
http://www.oreillynet.com/pub/a/php/2000/11/02/next_previous.html
Cheers,
Joao
--
Joao Prado Maia
Web Developer
Kefta, Inc.
T: (415) 391-6881 ext 8008
F: (415) 391-7079