makeQuery('chart',$persistent); //echo "selected ".json_encode($_GET['data'],JSON_NUMERIC_CHECK); //each filter to be included get its data and build the json object for the javascript //echo "will include ".count($_GET['data']['incfilters'])." filters"; $myData = json_decode($_GET['data']); if(isset($myData->incfilters)) $myfilters = $myData->incfilters; else $myfilters = array(); for($i=0;$ivalues) && $myfilters[$i]->values=='all'){ $temp = $controller->getFilterData($myData->table,$myfilters[$i]->name); if(!is_array($temp)){ $temp = json_decode($temp); } //print_r($temp->data); $myfilters[$i]->values = $temp->data; } } ?> chart