public function get_active_posted_job_by_id($id){
$Q = $this->db->query("CALL get_active_posted_job_by_id($id)");
if ($Q->num_rows() > 0){
$return = $Q->row();
} else {
$return = 0;
}
$Q->next_result();
$Q->free_result();
return $return;
}
答案 0 :(得分:0)
这样做
return $this->db->get_where('table_name', ['id' => $id])->row();
根据$id