News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Sameer's Blog:
Simple Pagination in PHP tutorial
October 30, 2008 @ 10:29:02

Sameer has posted a new tutorial to his blog recently, a look at a drop-in solution for pagination in your application - the PEAR Pager package.

Pagination is a frequent requirement in web development projects. Most PHP developers must have already implemented paging in one form or other in their projects. In this post we will see how to add pagination the easy way using PEAR's Pager class. Note that in all the posts I use PHP 5.x.x, so if you are still stuck at version 4.x.x, its already time to upgrade.

He includes a simple example (just the page links), how to install the Pager package and a larger example where the results are pulled from a database table and paginated correctly based on an offset ID. There's even some CSS thrown in to make it a bit more pleasing to the eye.

2 comments voice your opinion now!
pagination pear package pager install tutorial css


blog comments powered by Disqus

Similar Posts

Brandon Savage's Blog: Making Zend_Navigation Useful

Oracle Technology Network: Installing PHP 5.2 for Oracle on Mac OS X 10.5 (Leopard)

Brian Swan's Blog: SQL Server Driver for PHP Connection Options: Snapshot Isolation

PHPMaster.com: Integrating Amazon S3 using PEAR

NETTUTS.com: Create a PHP5 Framework - Part 3


Community Events





Don't see your event here?
Let us know!


opinion release voicesoftheelephpant package tips install bugfix laravel community library introduction api deployment framework language list symfony podcast interview series

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework