<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Thu, 23 May 2013 14:49:14 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[DevShed: Running Conditional Select Statements with the Active Record Pattern]]></title>
      <guid>http://www.phpdeveloper.org/news/12157</guid>
      <link>http://www.phpdeveloper.org/news/12157</link>
      <description><![CDATA[<p>
DevShed continues their look at the Active Record pattern with <a href="http://www.devshed.com/c/a/PHP/Running-Conditional-Select-Statements-with-the-Active-Record-Pattern/">this third part</a> of the series focusing on a new method in their class that will make select requests for the Active Record layer.
</p>
<blockquote>
If you're a PHP programmer who wants to learn how to implement the active record pattern within a MySQL abstraction class to make your database-driven applications more robust and maintainable, then look no further.  [...] In this third chapter of the series I'm going to show you how to add a new method to the class. It will be charged with executing conditional SELECT statements via a modified version of the active record pattern.
</blockquote>
<p>
After reviewing the CRUD functionality from the previous articles, they <a href="http://www.devshed.com/c/a/PHP/Running-Conditional-Select-Statements-with-the-Active-Record-Pattern/2/">add in the new method</a> - a fetchWhere function that allows the user to submit a table name and the parameters to add to the where clause as an array. Some <a href="http://www.devshed.com/c/a/PHP/Running-Conditional-Select-Statements-with-the-Active-Record-Pattern/3/">sample code</a> is included.
</p>]]></description>
      <pubDate>Wed, 18 Mar 2009 07:58:54 -0500</pubDate>
    </item>
  </channel>
</rss>
