News Feed
Sections




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

DevShed:
The LIKE Clause and the Active Record Pattern
March 24, 2009 @ 12:07:39

DevShed continues their look at the Active Record pattern with the next part of their seven part series - extending their MySQL class even further.

In its current incarnation, this class's functionality is limited, regardless of its decent level of SQL abstraction. Therefore, in this fourth part of the series I'm going to enhance it by making it capable of working with LIKE clauses in a straightforward way.

They look at using LIKE to match values in various columns of the tables and add in a fetchLike method that lets you specify the column to search, the pattern to match on and the table to search in.

0 comments voice your opinion now!
like clause tutorial activerecord pattern designpattern fetchlike


blog comments powered by Disqus

Similar Posts

ServerGrove Blog: Logging MongoDB queries using Symfony 2 and Doctrine ODM

PHP-GTK Community Site: Add icons to GtkMenu

Smashing Magazine: Keeping Web Users Safe By Sanitizing Input Data

PHP-GTK Blog: How to: PHP 5.3 with PHP-GTK and Cairo on Linux Mint 9

Jacob Santos' Blog: PHP Blackjack


Community Events





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


symfony2 interview community threedevsandamaybe list introduction install release unittest laravel developer refactor framework api code language series testing podcast opinion

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