Quote:
Originally Posted by Tempest
I "think" what he's looking for is to keep checking for a parent until there are none... So if he starts with idChild = 6, it's parent is 4.. Then he checks child 4 exists and finds it has a parent of 2.. Then he checks child 2 and finds it exists with a parent of 1.. Then he checks child 1 and find there is no child so the root parent is 1.
|
I figured this was what he was trying to do but didn't want to assume.. it appears as though you're right though from his reply to this..
@qw12er - Now let me ask.. is this in php?