RE: [PHP] Recursion: Ugh!
| From: | Chris W. Parker | Date: | Fri, 27 May 2005 18:49:02 +0000 |
| Subject: | RE: [PHP] Recursion: Ugh! | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-215895@lists.php.net to get a copy of this message | ||
Steve Brown <mailto:sbrown25@gmail.com>
on Thursday, May 26, 2005 11:47 AM said:
> How is your structure being built? Is it hard-coded or dynamic (e.g.
> pulled from a DB)?
From a database.
> We employ a similar "tree" structure for manging
> items in our store front. Believe me when I say, its a hell of a lot
> easier to only be concerned about the current item rathen then every
> item in the sturcture.
But what perspective are you coming at this?
Let's say you're entering a new product, you'd want to see a list of all
the available categories, not just the last node of a branch.
I'm not sure I understand what you're trying to say.
> What I mean is,
> if you are looking at the element "Round", don't concern yourself with
> "Fruit" or "Long".
But I wouldn't be building the entire tree if I were only looking at a
specific node.
Sorry I am misunderstanding you.
Chris.