Files
BE_IBL/application/controllers/test/T_check_mobile.php
2026-04-15 15:23:57 +07:00

26 lines
642 B
PHP

<?php
class T_check_mobile extends MY_Controller {
function dump($id) {
$sql = "select * from t_onlinetx where T_OnlineTxID = ?";
$qry = $this->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";
}
}