makeQuery('table',$persistent); $resp = json_decode($resp,true); //make the header row $header = array(); if($selectedData['xaxistitle'] && $selectedData['xaxistitle'] !='') $header[] = $selectedData['xaxistitle']; else{ $temp = explode("-",$selectedData['xaxis']['name']); $header[] = $temp[count($temp)-1]; } for($i=0;$isetup_table($data); $result = $vt->execute(); echo $result; } else{ die("unknown command code"); } } else { //oops error die("no command given"); } //#ob_end_flush(); ?>