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.
Like it? Subscribe to the blog if you haven't already
Related Posts
Free Scripts
Unreliable MySQL acquired by SUN, thank goodness
Webmaster Tools
Cycling through a list of strings
| Filed under: General, Web Technologies — Scott @ March 20, 2006 8:09 pm |
|





No comments yet.