Easily paginate through data sets with this library and set of plugins.

http://www.phpinsider.com/php/code/SmartyPaginate/