$username, 'DbPass' => $password, 'ServerIP' => $serverip, 'OrgDBName' => $db, 'Usercode' => $usercode, 'EmpId' => $empid, 'Clientdetails' => $clientdetails, 'Query' => $reportquery, ]; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $apipathurl.'fetchrsdata.php'); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: multipart/form-data')); curl_setopt($ch, CURLOPT_POSTFIELDS, $post); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $cres = curl_exec($ch); $rsarray = json_decode($cres,true); $categorydata= array(); for($i=0;$i"; $_SESSION['CategoryDataArr'] = $categorydata; $categorydataarr= json_encode ($_SESSION['CategoryDataArr']); ?>