Код: Выделить всё
public function get_payscale()
{
$this->db
->from('payscale P')
->join('employee E','E.employee_id = P.employee_id ');
$this->db->where('P.payscale_date',date('Y-m'));
return $this->db->get()->result_array();
}
Подробнее здесь: https://stackoverflow.com/questions/369 ... iters-quer
Мобильная версия