db->query($sql,[$id]); if (!$qry) { echo "ERR : " + $this->db->error()["message"]; exit; } $rows = $qry->result_array(); if (count($rows) > 0) { $r = $rows[0]; $payload_gz = $r["T_OnlineTxJsonGz"]; unset($r["T_OnlineTxJsonGz"]); print_r($r); echo "--------\n"; $data = gzinflate($payload_gz); $json = json_decode($data,true); print_r($json); exit; } echo "No Record for T_OnlineTxID $id\n"; } }