I am using Join
query to get data from multiple table which is working.
Now my issue is, when there is no records in one of the table(tbl_Fees or membership_details) then I am not getting the records. Some time I am getting error. It should be display atleast my members
records.
I tried below code
Model
public function Memberinfo(){
$getDetails = array('members.member_id'=>$this->session->userdata['login_session']['id'],'members.is_status'=>1);
$result = $this->db->where($getDetails)
->select('*')
->from('members')
->join('membership_details', 'members.member_id = membership_details.member_id','LEFT')
->join('tbl_Fees', 'membership_details.Fees_id = tbl_Fees.Fees_id')
->get()
->row();
return $result;
}
Would you help me out in this?