Batch 6a: application controllers base
This commit is contained in:
22
application/controllers/debug/Json.php
Normal file
22
application/controllers/debug/Json.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user