12-10-2007, 04:47 AM
|
#14 (permalink)
|
|
The Wanderer
Join Date: Dec 2007
Location: Orlando, FL
Posts: 23
Thanks: 0
|
Code:
category
id
parent_id
name
Is a pretty easy way to get category/sub-categories. Just use parent_id default of 0 for root-level categories. You can recurse through it as well if subcategories have their own children, etc as well.
|
|
|
|