23 lines
451 B
PHP
23 lines
451 B
PHP
<?php
|
|
|
|
class Json extends MY_Controller
|
|
{
|
|
function __construct()
|
|
{
|
|
parent::__construct();
|
|
}
|
|
function index()
|
|
{
|
|
$sql = "select * from one_log.log_process where Log_ProcessID = 131684";
|
|
$qry = $this->db->query($sql);
|
|
if (!$qry) {
|
|
echo $this->db->error()["message"];
|
|
exit;
|
|
}
|
|
$rows = $qry->result_array();
|
|
$inp = $rows[0]["Log_ProcessJson"];
|
|
$data = json_decode($inp, true);
|
|
print_r($data);
|
|
}
|
|
}
|