I am trying to get my data which is hierarchically set up with a tree traversal model into an < ul> in order to show on my site.
Here is my code:
There's a PEAR package for dealing with nested sets: DB_NestedSet. You might also be interested in the article Managing Hierarchical Data in MySQL.