View Single Post
Old 12-10-2007, 04:47 AM   #14 (permalink)
Rizza
The Wanderer
 
Rizza's Avatar
 
Join Date: Dec 2007
Location: Orlando, FL
Posts: 23
Thanks: 0
Rizza is on a distinguished road
Default

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.
Rizza is offline  
Reply With Quote
The Following User Says Thank You to Rizza For This Useful Post:
Haris (12-10-2007)