<?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>Tue, 21 May 2013 05:01:31 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[PHPFreaks.com: Working with checkboxes and a database]]></title>
      <guid>http://www.phpdeveloper.org/news/11724</guid>
      <link>http://www.phpdeveloper.org/news/11724</link>
      <description><![CDATA[<p>
On the PHPFreaks.com website a <a href="http://www.phpfreaks.com/tutorial/working-with-checkboxes-and-a-database">new tutorial</a> (by <i>Ben Smithers</i>) looks at interfacing checkboxes in your application's form with a backend database.
</p>
<blockquote>
The concept is actually pretty simple. It involves naming your checkbox as an array and the use of the IN mysql clause. This tutorial aims to give a simple example in the hope that, next time someone asks, I can point them to a tutorial rather than explaining all over again.
</blockquote>
<p>
They <a href="http://www.phpfreaks.com/tutorial/working-with-checkboxes-and-a-database">include</a> the database structure, insert statements and the code needed to pull and push the information for the checkboxes.
</p>]]></description>
      <pubDate>Mon, 12 Jan 2009 21:13:12 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[ProDevTips.com: Extending PHP Doctrine Record - Check Box Groups]]></title>
      <guid>http://www.phpdeveloper.org/news/10815</guid>
      <link>http://www.phpdeveloper.org/news/10815</link>
      <description><![CDATA[<p>
In the third part of the series dealing with using Doctrine in your PHP applications, ProDevTips has <a href="http://www.prodevtips.com/2008/08/11/extending-doctrine-record-handling-alias-arrays/">this third part</a> looking at a method for extending the tool's current functionality.
</p>
<blockquote>
I simply knew we would need the extension capability that the Mdl class allows for sooner or later, I didn't expect it to be this soon though. The main problem here is saving a many to many relationship straight to the database from the $_POST array, to do that we can extend Doctrine Record with a new function I have named fromArrayExt which adds something extra to the normal fromArray method.
</blockquote>
<p>
He shows how to extend the classes to create custom handlers for a grouping of checkboxes. The new code automatically handles their submitted values and pushes them directly into the database (with a simple save() call).
</p>]]></description>
      <pubDate>Tue, 12 Aug 2008 13:26:36 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[The Bakery: New Tutorials - PHPTAL, Multiple Checkboxes, and counterCache]]></title>
      <guid>http://www.phpdeveloper.org/news/7739</guid>
      <link>http://www.phpdeveloper.org/news/7739</link>
      <description><![CDATA[<p>
In the CakePHP blog, The Bakery, there are three new items posted - all three tutorials on different topics:
<ul>
<li>The first is <a href="http://bakery.cakephp.org/articles/view/using-phptal-for-templates-phptalview-class">a tutorial</a> that shows how to integrate PHPTAL templates into a Cake application (via a custom PhptalView class)
<li>Next up is a simple one - <a href="http://bakery.cakephp.org/articles/view/multiple-checkbox">the creation of a helper</a> to work with multiple checkboxes in a form .
<li>Lastly, there's <a href="http://bakery.cakephp.org/articles/view/countercache-or-counter_cache-behavior">a tutorial</a> that shows an implementation for a counterCache object in a simple application.
</ul>
Be sure to check out <a href="http://bakery.cakephp.org/">The Bakery</a> for more great tutorials and articles like this.
</p>]]></description>
      <pubDate>Mon, 30 Apr 2007 16:04:22 -0500</pubDate>
    </item>
  </channel>
</rss>
