Hello,

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?

Thanks,
Nahiyan

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 for diafol

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 developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.