Re: Thinking out loud - a continuation...

From: Date: Fri, 23 Mar 2012 19:52:44 +0000
Subject: Re: Thinking out loud - a continuation...
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16  Groups: php.general 
Request: Send a blank email to php-general+get-317236@lists.php.net to get a copy of this message
> [snip] > SELECT DISTINCT TIER3DATA AS id, > TIER2DATA AS parentId FROM > POSITION_SETUP WHERE COMPANY_ID = > '3' AND TIER2DATA IN ('Executives and > Management','Professionals','Technicians','Craft > Workers-Skilled','Operatives','Contractor','Sales > Workers','Laborers and Helpers','Admin Support') > > and it is empty. [/snip] I figured out part of the problem - the for loop starts at tier2 instead of tier1 Once I made that change I get the following error: Fatal error: Cannot use string offset as an array in /home/orcadept/public_html/poschart/json_chart.php on line 139 Line 139 is $item['children'][$id] = &$child;

« previous php.general (#317236) next »