News Feed
Sections




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

DevShed:
Paginating Result Sets for a Search Engine Built with MySQL and PHP 5
August 01, 2007 @ 13:41:39

DevShed continues their look at creating a search engine (after part one) with this next tutorial in the series. It focuses on the pagnation of the results from the search query.

In this second tutorial of the series I'm going to show you how to add some crucial characteristics to the previously-developed search engine. These include the implementation of paginated results and the ability to perform Boolean searches.

They build on the code from the previous tutorial and add in some simple pagination functionality by changing up the Result class to handle things like counting rows and displaying only a certain number of results at a time. To help make the pagination easier, they've also included a method to keep the search term constant across each page of the results - a custom session handler.

1 comment voice your opinion now!
php5 result set pagination mysql search engine tutorial php5 result set pagination mysql search engine tutorial


blog comments powered by Disqus

Similar Posts

Juozas Kaziukenas' Blog: Web scraping with PHP and XPath

SitePoint PHP Blog: Building a Live-score Widget Using PHP Web Sockets

NetTuts.com: Refactoring Legacy Code - Part 10: Dissecting Long Methods with Extractions

Aleksey Martynov's Blog: Getting started with lexa-tools: Blog in 15 Minutes

CorePHP Blog: A Guide to running Apache 2, PHP 4 & PHP 5 on Windows XP


Community Events

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


interview laravel5 unittest conference library introduction video extension psr7 series voicesoftheelephpant community release api framework language podcast opinion laravel development

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