Home >Backend Development >PHP Tutorial >判断是否有部属栏目,有就显示所有下级栏目,没有就显示同级栏目

判断是否有部属栏目,有就显示所有下级栏目,没有就显示同级栏目

WBOY
WBOYOriginal
2016-06-13 12:13:28864browse

判断是否有下级栏目,有就显示所有下级栏目,没有就显示同级栏目

本帖最后由 youxunet 于 2015-01-01 17:44:58 编辑 判断是否有下级栏目,有就显示所有下级栏目,没有就显示同级栏目 
PHP这个要怎么写啊?

字段中 分别有 id 和 pid
------解决思路----------------------
http://www.cnblogs.com/yangmanyan/archive/2011/06/16/2082963.html

应该能帮到你
Statement:
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