News Feed
Jobs Feed
Sections




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

Volker Dusch's Blog: Autoloading for legacy, non-framework projects

Cory Borrow's Blog: Creating thumbs from textfiles with PHP and GD

Community News: Dutch PHP Conference Tickets Now On Sale

PHPBuilder.com: Search Google Books with the Zend Framework's Zend_Gdata Component

DevShed: PHP, MySQL and the PEAR Database


Community Events











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


object conference language development database functional composer series example tool opinion community testing zendframework2 interview code framework podcast release introduction

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