News Feed
Jobs Feed
Sections




Recent Jobs

News Archive
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.

1 comment voice your opinion now!
pagination pear package pager install tutorial css




Similar Posts

Justin Silverton\'s Blog: Excel and php without COM

Felix Geisendorfer's Blog: Release early, Release often, A SVN/FTP Development Task

IBM developerWorks: Build a Web service with PHP

Vinu Thomas' Blog: PHPLiveX - Tutorial

BillS' IIS Blog: How to install PHP on IIS7 (RC1)


Community Events









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


wordpress microsoft release opinion zend codeigniter symfony security facebook developer drupal sqlserver job conference doctrine extension framework zendframework benchmark windows

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