On 12-03-23 03:22 PM, Jay Blanchard wrote:
[snip]
$json = JSON_encode( $root );
[/snip]
Update on my test. This works perfectly Robert - thank you very much! But there is one small problem that I am trouble-shooting: it only goes one layer and doesn't progress any further. I suspect it is on this section of code that I am going to add some stuff to to see what is happening.
if( !($parents =&$children) ){
break;
}
It would appear that both arrays are empty on the next cycle through so the break occurs.
Did you get any results form the database on the second run through the
query loop?
Cheers,
Rob.
--
E-Mail Disclaimer: Information contained in this message and any
attached documents is considered confidential and legally protected.
This message is intended solely for the addressee(s). Disclosure,
copying, and distribution are prohibited unless authorized.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php