|
Posted by Richard Lynch on 05/01/05 23:15
On Sun, May 1, 2005 1:08 pm, Murray @ PlanetThoughtful said:
> Color me confused. I removed "global $arrtree;" and added "$arrtree =
> array();" to the function buildProjectTree() and now the parent function
> (listProjectChildren) returns no values at all.
>
> I've checked the page from which listProjectChildren() is being called,
> and
> $arrtree does not appear as a variable in it at all, so it seems "global
> $arrtree;" was doing SOMETHING, but at this point I have no idea what.
>
> Still trying to work this out, if anyone else has any suggestions?
I'm not real clear on what you are trying to do in the first place, but if
taking out the global messed up, put it back :-)
Maybe add another global $arrtree in the other function so *BOTH*
functions are using the same $arrtree?
--
Like Music?
http://l-i-e.com/artists.htm
Navigation:
[Reply to this message]
|