What should I use to do pagination on a webpage?
I am building a website project from scratch. I am using Smarty, PHP and SQLite3. Currently the page lets the user search the database and returns results. I am limiting the result set size at the moment using LIMIT in the SQL query. Now I want to be able to add pagination to the result list and remove the limit from the query. Years ago, I would have used PHP to do the pagination but nowadays surely there is something else I can use so the page doesn't have to reload? I have looked into React and I'm sure JS would let me do it but I'm rather inexperienced in both. I'm looking for simplicity mostly. An easy way to add this functionality. Is it possible to have PHP request an entire result set from the database, then use JS to handle the pagination? I'm also open to using a "load 50 more results" at the bottom of the list as well if that would be easier.