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
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)
{
2 matches
Mail list logo