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

From: Date: Wed, 12 Sep 2007 18:04:11 +0000
Subject: Re: my paging task with PHP does not work. It uses cookie.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-262029@lists.php.net to get a copy of this message
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

« previous php.general (#262029) next »