<h2>Get Data By Month and Year</h2>
<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
function getLeave()<br /> { <br /> $this->db->where('MONTH(CURDATE()) = MONTH(emp_leave_start_date) and YEAR(CURDATE()) = YEAR(emp_leave_start_date)');<br /> $query = $this->db->get('employee_leave');<br /> return $query->result();<br /> }</div>
Comments
Post a Comment