Re: paging large amounts of data
| From: | Lorenzo Alberton | Date: | Wed, 07 Sep 2005 17:37:04 +0000 |
| Subject: | Re: paging large amounts of data | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-20846@lists.php.net to get a copy of this message | ||
Hi Lukas,
I'm back. I don't know if you've already solved your problem,
anyway have a look at the wrapper in the /examples/ dir:
http://cvs.php.net/co.php/pear/Pager/examples/Pager_Wrapper.php
it does exactly what you need.
its not entirely clear to me how paging of large amounts of data are going to work. essentially the way things seem to me is that I need to stick in an array with all the id's of the entire dataset, even if in the end I am only interested in a small number of all the id's and even if I am able to specifically extract these ids using LIMIT (or some equivalent syntax) from the database. Is there a way to just pass in a count of the total number of items in the dataset instead? It does not seem sensible to fake this huge array either.HTH Regards, -- Lorenzo Alberton http://pear.php.net/user/quipo