Pager not working

From: Date: Wed, 28 Jul 2004 12:42:17 +0000
Subject: Pager not working
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-13890@lists.php.net to get a copy of this message
Hi, I'm just starting to use PEAR. (i.e complete noobie, you'll see) I want to use HTML_Quickform and display the result with the Pager, but I just can't make it work. I use this exemple to build my pager : http://seagull.phpkitchen.com/docs/wakka.php?wakka=PagingRecordsets Pager links work fine,since I include my query (select * from mytable where name like Bob) in the code. Then I build a Quickform, with a field called 'name', and change the query of the pager into (select * from mytable where name like '$_Post[name]') This works fine and displays the first results, but if I click on the link to page2 on the pager, the '$name' value is not passed to the page, so the query is wrong. I'm sure I'm doing something wrong... Does anyone have a simple exemple of displaying paged results of query using a form ? Should I first make my query and pass the array to the pager via the 'itemData' pager option ? (Don't see the point, though, since it generates 2 queries). Thanks in advance. I'll post the code (which is mostly a copy/paste from the documentation) if needed. Just ask.

« previous php.pear.general (#13890) next »