Re: PHP and Mysql Limit
| From: | ed at homes2see dot com | Date: | Wed, 02 Jul 2003 17:19:11 +0000 |
| Subject: | Re: PHP and Mysql Limit | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-153751@lists.php.net to get a copy of this message | ||
On Wed, 2 Jul 2003, Jeff Harris wrote:
> Then, once you've done it enough times, $start = $count = 178.
> [code]
> while ($start <= $count) {
> // when $start = $count = 178, you won't retrive any data
> [/code]
The recordset would not alway contain an even number of records resulting
in 10 records per page. It may contain something like 1027 records which
should then produce 103 pages. 102 pages each with 10 records and one page
of only 7 records.
Ed