Re: Hierarchies and MySQL with PHP

From: Date: Sun, 27 Jun 2004 19:02:48 +0000
Subject: Re: Hierarchies and MySQL with PHP
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-189121@lists.php.net to get a copy of this message
Marek Kilimajer wrote:
This should be of your interest: http://www.evolt.org/article/Four_ways_to_work_with_hierarchical_data/17/4047/ Indeed! The "flat table model" is simple, efficient and - I think - sufficient. Thanks!
I also found this article which explains the "fourth" method not really described above, despite the title: http://www.sitepoint.com/article/hierarchical-data-database/ That method is a bit more complicated but it also allows you to determine the (total) number of child nodes of a node, without an extra SQL query. /Mattias

« previous php.general (#189121) next »