Re: my paging task with PHP does not work. It uses cookie.

From: Date: Thu, 20 Sep 2007 01:29:42 +0000
Subject: Re: my paging task with PHP does not work. It uses cookie.
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-262265@lists.php.net to get a copy of this message
Dear Brian, My problem is solved. thank you very much for your help. === On Wed, 12 Sep 2007 14:04:11 -0400 brian <phplist@subtropolix.org> wrote: > Patrik Hasibuan wrote: > > Dear my friends... > > > > I am trying to display the content of a table. Each page must content > > only 5 records maximum. Each page has "Previous" and "Next" buttons > > (made from anchor). > > > > I dump the primary of the working table and keep it in a cookie. So > > than the paging task work with the index of cookie array. But the > > $curguruescomidiklan stays "0" each time I click "Next" button. > > > > Patrick, i can't say what the problem is, but i recommend using the PEAR > Pager package for this if you have PEAR available. It takes care of a > lot of the heavy lifting and is very configurable. > > http://pear.php.net/package/Pager > > This does not require setting any cookies. > > brian > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- Patrik Hasibuan <patrikh@penguin-teknologi.com> Junior Programmer

« previous php.general (#262265) next »