i ment if id and parent {id,parent} has relation, how to make array that starts from 1,0 --> x,1 --> smallest id from next level. after peek founded loop turns back and tries to find crossing below, until loop get's into x,0 -level and loop starts again from ex. 6,0.
it's important that array be made up like this, array[$indexNumber][{1,2,3,4[id,parent,name,depth]}], because then array can be looped ex. in navigation (depth=4) --> 4 times
select id from table where parent = $current_id.
my depth count goes right but $query[$depthCount] doesn't...