function load_roster_by_date()
{
$date = $this->input->post('date');
$this->db->select('*');
$this->db->from('duty_assign');
$this->db->where('date',$date);
$this->db->join('opd_employees','(opd_employees.badgenumber = duty_assign.emp_id)','right');
$query = $this->db->get();
return $query->result_array();
}
The code perfectly works without adding $this->db->where('date',$date);
. (Which means the output is the expected right joined table without a where condition). But when I add the where condition, the result is similar to the regular join, not as the right join. No errors in the console. Any help to solve this, please?
All I want is whether a duty added or not all the employee names should be displayed in the table