Filed under: General,Web Technologies — Scott @ 8:09 pm
Storing tree structures with PHP and Mysql is aproblem I have solved about 8 million times but I never get around to storing my code for myself. Well I finally cure that with this class that allows modeling tree with PHP/mySQL.
—-
cNodes is a php class to store and manipulate tree structure in a mysql database. An example of a typical uses for this would be a web directory. Its important to note that the class and the table are meant only to model the relationships between nodes in a tree. All descriptive data about the nodes should be stored in a seperate table. The class requires the use of PEAR::DB.
Popularity: 10% [?]
Like it? Subscribe to the blog if you haven't already
Related Posts
-
Unreliable MySQL acquired by SUN, thank goodness
Cycling through a list of strings
Typo Class updated for php 4
Doug Heil, white hat seo troll






No comments yet.