> however if the children also have children, how do i just pull out the first 
> generation of children?

You do a query that selects all decendants of the parent node in
question, except those that have have more than zero intervening
ancestors.  To put that another way, you do a query for all decendants
of the node and compute their depth, and only return nodes that have a
depth of 1.

cheers,
barneyb

On 2/1/06, Mike Little <[EMAIL PROTECTED]> wrote:
> guys, on many sites i have looked at - when you click a category the link 
> includes an x=&y= in the querystring. would this be referring to the left and 
> right columns of a nested model i wonder??
>
> so if i know the left and right values for a particular category i can pull 
> out of the database the children of that category by using < and >. this i 
> understand.
>
> however if the children also have children, how do i just pull out the first 
> generation of children?
>
> eg. i wish to click on the winter category and just bring up the pants and 
> skirts categories ( i will be using simple text navigation)
>

--
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 100 invites.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:231052
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to