MySQL paging command is LIMIT.
LIMIT starting_record, page_size
That's it. You have to use your application language (this case ASP) to do anything else. ASP has to set both the starting record and the page size. That means your page list links must post the appropriate numbers back to the application, so that the query can be resubmitted with the updated LIMIT.
The logic:
retrieve and set the page size and starting record of the page.
update the sql statement's LIMIT clause with the new info.
Requery MySQL
Read out the current page.
Build the previous and next links with the appropriate new starting record and page size as querystrings (or post data if using a form)
Repeat
Edited by Meson - 23 August 2005 at 6:08pm