public function show_project() {
$this->load->model('OPM_model/get_data');
$data['project_data'] = $this->get_data->get_all_projects();
foreach ($data['project_data'] as $p_id) {
$user_id = $p_id->project_assigned_user_ids;
$id = explode(",", $user_id);
foreach ($id as $value) {
$ide = $this->get_data->get_developer_name_by_id($value);
echo '<pre>';
print_r($ide);
}
}
// $ide= $this->get_data->get_developer_name_by_id($id);
die();
}
答案 0 :(得分:0)
在Codeigniter中,您只需调用:
即可执行上次查询$this->db->last_query()
它返回作为SQL String执行的最后一个查询。
如果要打印,请使用:echo $this->db->last_query();