Result Pager 1.0
Result Pager takes as parameters the total number of items in the listing, the limit number of items to display per page and the number of the current page.
Result Pager returns an array with the number of the first item and the range of items to show in the current page, the total number of pages, the need to present the next and previous links, and the LIMIT clause if the listing is to be retrieved from a MySQL database or similar.
An iterator, used to return the navigation page offsets or HTML links to display on the current page, is also provided. The template of the links is configurable.
PHP 5.0 or higher