Re: Array output from function into a new query
- From: Stefan Rybacki <stefan.rybacki@xxxxxxx>
- Date: Wed, 29 Mar 2006 08:43:25 -0500
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Stefan Rybacki schrieb:
Marc schrieb:
...Stefan Rybacki schreef:
// call this function again to display this
// child's children
$output['children'][]=display_children($row['nt'], $level+1);
so I missed the ID stuff, to have your nt's saved as well change the
line above to:
$output[$parent]['children'][]=display_children($row['nt'],$level+1);
This way you will end in a tree array looking like this:
parentNT
children -> parentNT
children -> ...
-> ...
-> parentNT
children -> ...
...
Regards
Stefan
...-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (MingW32)
iD8DBQFEKo79yeCLzp/JKjARArdXAJ9t1H13H3po53U696hui9JFkKDH3gCfcsfc
r4APCH3yg32bnXg9zW9/Rm8=
=/OxM
-----END PGP SIGNATURE-----
.
- References:
- Array output from function into a new query
- From: Marc
- Re: Array output from function into a new query
- From: Stefan Rybacki
- Re: Array output from function into a new query
- From: Marc
- Array output from function into a new query
- Prev by Date: Re: newbie simple problem with cookie
- Next by Date: Re: newbie simple problem with cookie
- Previous by thread: Re: Array output from function into a new query
- Next by thread: multiple image upload / email script?
- Index(es):