Re: [PHP] Treestructure

2001-04-20 Thread Johan Evers Petersen
$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

[PHP] Treestructure

2001-04-19 Thread Johan Evers Petersen
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

[PHP] Newbie - treestructure

2001-04-19 Thread Johan Evers Petersen
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