pager related issue
| From: | Alessandro Vitale | Date: | Thu, 26 Feb 2004 11:41:04 +0000 |
| Subject: | pager related issue | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-178923@lists.php.net to get a copy of this message | ||
I am working on a pager class that relies on a standard statement like:
select * from my_table limit $offset, $limit
As a feature of my pager class, I would like to display the total number of
pages (each one of $limit rows) to display and the current page number. Does
anybody use any clever trick other than performing an additional query like
"SELECT COUNT(*) WHERE.." ?
any suggestion is welcome.
thanks
alessandro