Re: Pager - search
| From: | Massimiliano Arione | Date: | Tue, 06 Dec 2005 08:20:34 +0000 |
| Subject: | Re: Pager - search | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-22163@lists.php.net to get a copy of this message | ||
Brent wrote:
I'm having some trouble getting pager to work correctly. The problem is displaying the next page after a search. It pulls the first page of data no problem, but when I go to the next page, it defaults back to the sorted data instead of the search data? Below is a code snippet, any ideas? Thanks!It looks like you are retrieving all your data with sql and then paging. This is not optimized. You should take a look to the wrappers provided in the Pager examples (you can find it in the pear docs dir on your machine) -- Massimiliano Arione http://garakkio.altervista.org