Dylan Leblanc
01-07-2004, 07:25 PM
I was going to create the type of structure as outlined on these pages, but am wondering if anybody else is familiar with this concept, what it is called, and if there are any functions already written which I could make use of.
http://conf2.php.net/presentations/slides/phpperform/tree2.png
By using Left and Right fields in the database, along with the ID and Parent ID, it makes it simple to select a branch of the tree from leaf to root with just one query ,http://conf2.php.net/show/top7-vancouver/22/
Mainly, I think I am looking for a function which would arrange the Left and Right fields in the database in the proper numerical order.
http://conf2.php.net/show/top7-vancouver/21/
http://conf2.php.net/show/top7-vancouver/23/
http://conf2.php.net/show/top7-vancouver/24/
http://conf2.php.net/presentations/slides/phpperform/tree2.png
By using Left and Right fields in the database, along with the ID and Parent ID, it makes it simple to select a branch of the tree from leaf to root with just one query ,http://conf2.php.net/show/top7-vancouver/22/
Mainly, I think I am looking for a function which would arrange the Left and Right fields in the database in the proper numerical order.
http://conf2.php.net/show/top7-vancouver/21/
http://conf2.php.net/show/top7-vancouver/23/
http://conf2.php.net/show/top7-vancouver/24/