Re: Thinking out loud - a continuation...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mar 23, 2012, at 2:25 PM, Robert Cummings wrote:

> On 12-03-23 03:17 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;
>>        }
> 
> I didn't actually test it... if you have trouble figuring out the problem feel free to send me a copy of your table (in private) and I'll debug :)

I had it backwards. Both arrays are empty and the break should not occur because they are equal to each other. Let me send you a portion of the table Robert. 
-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux