<?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 05:00:24 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Daniel Cousineau's Blog: Hierarchical Data With PHP and MySQL]]></title>
      <guid>http://www.phpdeveloper.org/news/10319</guid>
      <link>http://www.phpdeveloper.org/news/10319</link>
      <description><![CDATA[<p>
<i>Daniel Cousineau</i> submitted a <a href="http://www.toosweettobesour.com/2008/06/02/hierarchical-data-with-php-and-mysql/">new blog post</a> he's come up with that looks at using hierarchical data in a MySQL database.
</p>
<blockquote>
I recently had fun with an all-to-common issue with SQL driven websites: hierarchical data. For those who don't like big words, think trees. <a href="http://dev.mysql.com/tech-resources/articles/hierarchical-data.html">Other people</a> have already discussed storage methods, and I would actually highly suggest you read the writeup if you haven't already.
</blockquote>
<p>
He includes a sample table you can work from and <a href="http://www.toosweettobesour.com/2008/06/02/hierarchical-data-with-php-and-mysql/">some code</a> that can be used to generate a select (based on a $depth variable) parent/child values from it. A few simple function calls later and you have a nested array or lots of little subarrays maintaining the parent/child relationships the database has.
</p>]]></description>
      <pubDate>Mon, 02 Jun 2008 12:09:37 -0500</pubDate>
    </item>
  </channel>
</rss>
