Re: paging large amounts of data
| From: | Lukas Smith | Date: | Tue, 23 Aug 2005 15:55:26 +0000 |
| Subject: | Re: paging large amounts of data | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-20542@lists.php.net to get a copy of this message | ||
Lassiege Hugo wrote:
I'm not sure your questions is about PEAR::Pager but if it's the case, maybe this code could help you ?yes I was ..
I presume you are fetching all the news id in the database here ..? This is exactly what I want to avoid. I would rather pass in the total number of items in the database, plus the relevant id's, which I can easily determine by getting the current page number and the page size. regards, Lukas// Number of news per page $nbNewsPerPage = 10;// Number of news $nbNews=$DBNews->getNbNews ();