ci下无限级分类
求在CI下实现递归无限级分类方法数据库设计如下:
classidclassnameparentid三个字段
1 汽车 0
2 服装 0
3 奇瑞 1
4 大众 2
5 以纯 2
6 数码 0
7 比亚迪 1
如何通过递归在ci中实现无限级分类,因为需要把查询出来的放在JS中,
查询出来的格式需要是:
array(
=汽车
=奇瑞
=大众
=比亚迪
=服装
=以纯.
.......
)
这种类型的,求指教
今天刚刚好看到这篇文章,你可以参考下哈:http://phpersite.sinaapp.com/index.php/jayjun/doc/ci/6/cid/13/aid/17.html 原来 是这样的呢!!!
页:
[1]