I have 1000 rows of data but need to only display 100 rows at a time.
I would like navigation buttons (like on google next, prev) to go thought the groups of 100
My C cgi application runs and exits every new query, so it can’t save states.
Question is: What is the most efficient way to save the current state of the OFFSET, so I can navigate back and forth through rows of 100 in the SQL db?
Any help is appreciated. Thanks.
Very confusing way to ask this, but…
Your ‘page’ has 100 items, so simply pass a GET variable to the next page ?page=1
Then you use OFFSET = page * 100