PhpRiot
Follow phpriot on Twitter
Sponsored Link
Download Article
Download this article or the entire “Implementing An N-Level Nested Tree In PHP And PostgreSQL” series with all listings and files.




More information
Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...


When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store
Free iPad/iPhone App
Available on the App Store

  • PHP manual
  • Zend Framework manual
  • Smarty manual
  • PHP articles
  • PHP training

Implementing An N-Level Nested Tree In PHP And PostgreSQL, Part 2

Summary

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.

Moving forward

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.

Other Options

In This Article