Zebra_Pagination, a generic pagination PHP class
A generic pagination class that automatically generates navigation links given the total number of items and the number of items per page. Can generate links both in natural as well as in reverse order, can be easily localized, supports page propagation via GET or via URL rewriting, and the appearance can be easily customized through CSS, and is SEO-friendly - uses rel="prev" and rel="next" and solves the problem of duplicate content on the first page without navigation and the first page having the page number in the URL. Please note that this is a *generic* pagination class, meaning that it does not display any records! It is up to developer to fetch the actual data and displaying it based on the information returned by this class. The advantage is that it can be used to paginate over records coming from any source (arrays, database, etc). Zebra_Pagination's code is heavily commented and generates no warnings/errors/notices when PHP's error reporting level is set to E_ALL.