NYCPHP Meetup

NYPHP.org

[nycphp-talk] Building trees

Jim Hendricks jim at bizcomputinginc.com
Sat Oct 19 18:11:55 EDT 2002


Yes, but I am persuing the design proposed by Celco since it is a mostly DB
solution.

Jim

----- Original Message -----
From: "janis p gale" <sharpwit at hotmail.com>
To: "NYPHP Talk" <talk at nyphp.org>
Sent: Saturday, October 19, 2002 5:22 PM
Subject: Re: [nycphp-talk] Building trees


> actually...
> wouldn't it be as simple as querying the tierlevel
> of the parent project, and incrementing by one?
>
> > Figuring out the level at the time a Project is saved is simple since I
> > have a parent ID, I can walk the tree backwards until I get a 0 ParentID
> > ( 0 is not a legal ProjectID in my design ).  The number of queries I
> > had to do plus one would be the level of this new item.
>
>
>
> --- Unsubscribe at http://nyphp.org/list ---
>
>
>
>
>





More information about the talk mailing list