So I wrote a PHP script which will return all the contents of a table using Mysql.
I want to set a limit so that PHP will display only 30 rows and divide them into pages like [1,2,3...] dynamically and the PHP script will detect the page using GET method or something like that.
So how can I accomplish that?


Recommended Answers

Do a search on pagination

Jump to Post

I use Pager from the Pear framework. Have a look at



Jump to Post

All 5 Replies

Do a search on pagination

commented: Saved my day! +3

Thanks Crishea for sharing the term 'Pagination', it saved my day!

Sorry but I do not use any framework.

Member Avatar

Roll your own. Search this forum. This problem raises its head at least twice a week. :(

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.