Re: [PHP] Treestructure

2001-04-20 Thread Johan Evers Petersen
Yes thx, but it seems that my tree is build allright, I just can't get it out on print... I have in my add() function a printout and from this I believe that the tree is build allright. All the treenodes are added to the correct subtree arrays. function add($currentNode) { //This function is used

Re: [PHP] Treestructure

2001-04-19 Thread Chris Lee
this is my make_tree() function like your make_node() I think function _make_tree($category_id) { global $database; static $padding = -1; foreach($database->select_array('', 'category', "WHERE category_parent = $category_id ORDER BY category_name") as $pos => $result) {

[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