Re: help needed with pager
| From: | Rabin Vincent | Date: | Thu, 25 May 2006 12:42:20 +0000 |
| Subject: | Re: help needed with pager | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-236885@lists.php.net to get a copy of this message | ||
On 5/25/06, Ross <ross@aztechost.com> wrote:
http://scottishsocialnetworks.org/editor.php http://scottishsocialnetworks.org/editor.phps the pager in this page works except try and choose aberdeen from the area dropdown. You should get 18 answers which is fine except when page 2 is pressed at the bottom the query seems to be scrubbed and it returns the full database. any ideas how I can 'save' the query and not create a new blank query every time the page is slef submitted?Get your variables, like 'area', from $_GET if they're not in $_POST. And then you can change your page navigation links to something like: echo $pager->get_prev('<a href="{LINK_HREF}&area=' . $area . '" title="Previous">«</a>'); Rabin