Posted by aaron on 03/11/07 03:27
I have an array of id=>category:
[018821] => Automotive Parts
[222033] => Automotive Parts\Domestic
[205884] => Automotive Parts\Foreign
[987219] => Building Supplies
[624668] => Building Supplies\Lumber
[063964] => Building Supplies\Lumber\Hardwood
[592999] => Building Supplies\Lumber\Hardwood\Steel
[987808] => Building Supplies\Lumber\Structural
[169626] => Building Supplies\Lumber\Treated
[966554] => Building Supplies\Plumbing
[329645] => Construction Adhesives
[621126] => Roofing Supplies
[400762] => Roofing Supplies\Asphalt Roofing
[475138] => Roofing Supplies\Metal Roofing
What I'm trying to do is loop through the array and create a category
tree:
Automotive Parts
Domestic
Foreign
Building Supplies
Lumber
Hardwood
Steel
Structural
Treated
Plumbing
Construction Adhesives
Roofing Supplies
Asphalt Roofing
Metal Roofing
Any guidance?
Regards,
Aaron
Navigation:
[Reply to this message]
|