|  Please subscribe to the blog if you haven't already

Php Tree Class

Add

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.

Go here to get the class.

—-

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
Filed under: General, Web Technologies — Scott @ March 20, 2006 8:09 pm Sphinn Digg!

Comments »

No comments yet.

Name (required)
E-mail (required - never shown publicly)
URI
Your Comment (smaller size | larger size)
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> in your comment.