Hi David,

Are you mean, complete categori tree?

I would be take this step:
1). Determine category level.
2). Loop for count of level.
    2.1). Collect all category in level number.
    2.2). If is root category save this.
    2.3). If isn't root category, loop inside data and find subcategory for
it.

Emm..., I use this for printing category tree in my project. I guess this
too many eat memory, any ideas? but it work properly, and support unlimited
level category :)), but I can provide you the code because this project is
one package, I worry you don't understand if I attach a bit code. I hope
with this litte pieces, you can found the algorithm.

I hope don't missing something. :(

Good Luck,
    Firman

----- Original Message -----
From: "David T-G" <[EMAIL PROTECTED]>
To: "PHP General list" <[EMAIL PROTECTED]>
Sent: Monday, March 15, 2004 9:45 PM
Subject: [PHP] categorizing and array mapping

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to