You are here: Re: Array output from function into a new query « All PHP « IT news, forums, messages
Re: Array output from function into a new query

Posted by Stefan Rybacki on 03/29/06 16:43

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация