$this->level[$pos] = str_repeat(' ', $padding * 2);
$this->_make_tree($category_id[$pos]);
}
$padding--;
}
all you need is three fields, the categories id, the categories parent, and
the categories name. recusion is tricky stuff :)
--
Chris Lee
[EMAIL PR
I'm Newbie - sorry if this is the wrong list!
I'm trying to print this treestructure I've made, but it doesn't seem to
print more than the first level. The
subtree array of the children is empty, perhaps because I do not
use the correct reference passing?
Thank you for helping me out.
This is t
I'm Newbie - sorry if this is the wrong list!
I'm trying to print this treestructure I've made, but it doesn't seem to print more
than the first level. The
subtree array of the children is empty, perhaps because I do not
use the correct reference passing?
Thank you for helping me out.
This
3 matches
Mail list logo