ci框架查询结果获取数组返回json
2016-12-15 本文已影响0人
_WhatsUp_
$result = $this->data_mdl->get_datas();
$data['result'] = true;
$data['data'] = $result->result_array();
echo json_encode($data);
$result = $this->data_mdl->get_datas();
$data['result'] = true;
$data['data'] = $result->result_array();
echo json_encode($data);