Re: paging methodology
| From: | John W. Holmes | Date: | Wed, 05 May 2004 14:32:20 +0000 |
| Subject: | Re: paging methodology | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-185428@lists.php.net to get a copy of this message | ||
----- Original Message -----
From: "Paul Chvostek" <paul+php@it.ca>
> On Tue, May 04, 2004 at 02:37:50PM -0700, Chris W. Parker wrote:
> > well that just meant that after the initial count of records is found it
> > will be retrieved from the querystring instead of through a select
> > statement (because it had already been performed once before).
>
> I never bother with getting the initial record count. Unless you want
> to display the total number of available pages, of course (in the vein
> of Google search result set).
Personal preference here, I guess, but I don't care for searches that don't
tell you how many records were matched (or how many pages you'll have). I
think the additional query is well worth it. The number of results tells me
how successful my search was and whether I need to expand or shrink my
search criteria.
---John Holmes...