我有一个包含以下数据的mysql表
substring
我想让我的所有类别都在一个漂亮的category_id | category_title | category_description | category_parent
1 | Shoes | This category contains shoes | NULL
2 | Nike | This category contains Nike shoes | 1
3 | Adidas | This category contains Adidas shoes | 1
4 | Air Max | This category contains Nike Air Max | 2
结构中,你能帮助我吗?
现在我只是将它编码为静态到最大值。像这样的两个孩子类别:
<ul>