News Feed
Sections




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

PHPFreaks.com:
Simple SQL Search
May 08, 2009 @ 09:30:06

In a new article on PHPFreaks.com Brad Jacobs takes a look at creating a simple search of the information in your database. Their example will search a table containing article information (title, story content, etc).

The aim of this tutorial is to provide users with a basic layout and the logic behind creating a multiple field search in MySQL. As often time users tend to over do the search and add a lot of unnecessary code. By following and understanding this tutorial you should be able to implement this search into your own site and provide a nice and simple SQL Search of your own database. So roll up your sleeves and be prepared to get dirty.

Everything's provided for you - the SQL to build and fill the tables and the code to perform the search. They opted to go with LIKE statements in the where clause instead of using something like full-text searching. The former works for a lot of situations, but can get slower and slower the more rows there are in the table.

0 comments voice your opinion now!
simple tutorial sql search mysql fulltext article content title


blog comments powered by Disqus

Similar Posts

DevShed: Expanding the Application Range of Visitor Objects in PHP 5

The Bakery: Eight New Items (Components, Tutorials & Helpers)

MaltBlue.com: How To Build an Extendible Zend Framework Application

Doug Brown's Blog: Zend_Cache is Saving me Money!

CodingThis.com Blog: Quick XML-to-HTML Templating in PHP Using SimpleXML


Community Events





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


community framework introduction release language api library laravel project configure list threedevsandamaybe interview series application code install developer podcast wordpress

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