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