Home > php教程 > php手册 > PHP无限分类的算法

PHP无限分类的算法

WBOY
Release: 2016-06-13 09:52:30
Original
969 people have browsed it



问题
PHP无限分类的算法
解决方法
请教一下PHP无限分类的算法,主要是分类排序的问题。怎么让三级分类紧贴在二级分类下二级分类在一级分类之下(同级),另外就是移动父级分类之后,该分类之下的子分类排序怎么解决?


参考答案
有一个基于左右值的无限分类算法
楼主可以自己搜搜
也可以到偶小站上看看
[url=http://www.xmcase.com/phplib.php]链接标记www.xmcase.com/phplib.php[/url]
参考答案
我想了一个算法但是移动栏目的时候要批量更新该栏目下所有的排序值

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template