Implementing An N-Level Nested Tree In PHP And PostgreSQL, Part 2
In this article, we built on the theory from part 1 of this article series, by creating a PHP class which updates and manipulates the data in a nested tree.
In the final part of this article, I’ll put the class we created here to real-world use.
The real-world application I’ll use which you will be able to relate easily to is the article system for phpRiot. I’ll show you how the article publishing system works in relation to the Nested Tree model. This includes displaying the “pages in this section”, the breadcrumbs system and various other aspects of the article publishing system.
- Download a PDF version of this article
- Put your PHP knowledge to the test with our online and iPad/iPhone quizzes
- View or post comments for this article
- Browse similar articles by tag: MySQL, PHP, PostgreSQL
- Read related articles: