News Feed
Sections




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

PHPBuilder.com:
Pagination of Results on a Web Page
October 04, 2006 @ 16:17:00

PHPBuilder.com has another in their series of excerpts from the Sams Publishing book "PHP 5 in Practice" today - a look at paginating results on a website.

When creating browse or search functionality on a website, you many find that you end up with more data than the page can easily display at once. In these situations it makes for a better user experience to give users only a certain number of results and then present them with options to see the next and/or previous pages.

The code listing is slightly complex, but it does provide a good, clear look at how to paginate the values in an array. They also explain a bit about the two functions that make it possible - http_build_ query and array_chunk.

0 comments voice your opinion now!
php5 practice book excerpt pagination results php5 practice book excerpt pagination results


blog comments powered by Disqus

Similar Posts

IBM developerWorks: What's new in PHP V5.2, Part 5: Tracking file upload progress

Debuggable Blog: How to have multiple paginated widgets on the same page with CakePHP

PHPClasses.org: Book Review: Wicked Cool PHP: Real-World Scripts That Solve Difficult Problems

Brian Swan's Blog: Book Review: Easy PHP Websites with the Zend Framework

PHP -GTK Community Site: A New Trio of Posts (phpISO, a PHP-GTK book, and Dev Inspector)


Community Events





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


symfony language api threedevsandamaybe laravel conference community code podcast bugfix tips zendserver interview series voicesoftheelephpant deployment framework list release introduction

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