Displaying long list in pages
| From: | Shahmat Dahlan | Date: | Fri, 07 Dec 2001 08:32:01 +0000 |
| Subject: | Displaying long list in pages | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-14858@lists.php.net to get a copy of this message | ||
I was trying to list out some records from a MySQL db. And since there
my search result returned to many results, I would like to divide them
into separate pages. I tried to divide results with maybe 50 to 100
lines per page with the "limit" option into my select statement. I can't
somehow figure it out as it didn't work (that well), does some out there
have any idea how I can effectively achieve this?
Appreciate it. Thanks.
e.g.
field 1 field 2 field 3 field 4
...... ........ .......... .......
...... ........ .......... .......
...... data here ........ .......
...... ........ .......... .......
...... ........ .......... .......
page 1 page 2 page 3 page