Getting a modified preorder tree traversal model (nested set) into a

    前端 未结 7 1320
    傲寒
    傲寒 2020-11-27 10:56

    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:

    
    
            
    7条回答
    •  -上瘾入骨i
      2020-11-27 11:14

      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.

    提交回复
    热议问题