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) {