我想知道什麼是使用PHP和MySQL顯示所有類別和子貓和子子類別等邏輯?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
嗨,首先請詳細描述您的問題..以及要顯示此類別和子類別的位置..?在組合框或其他地方..? – Chandresh 2011-04-27 07:05:24
什麼是組合框 – sony 2011-04-27 07:06:42
組合框是'' – Teneff 2011-04-27 07:11:32