【发布时间】:2011-04-27 07:02:54
【问题描述】:
我想知道使用 PHP 和 MySQL 显示所有类别以及子类别和子类别等的逻辑是什么?
一个简短的例子会很有帮助,谢谢。
这是我的 MySQL 数据库结构。
id parent_id category url depth
2 0 Arts & Ent ?cat=arts-and-entertainment 0
4 0 Automotive & Trans ?cat=automotive-and-transportation 0
6 0 Business & Finance ?cat=business-and-finance 0
【问题讨论】:
-
嗨,首先请详细描述您的问题..以及您想在哪里显示此类别和子类别..?在组合框或其他地方..?
-
组合框是
<select></select> -
不,我根本没有使用组合框
-
@prodigitalson 好的,我在找什么?