I need to compare start_date to current_date so that i could found the data of the particular day(In other words: data of the day). For this, i am using this query
$rs = $this->db->select('ult_camp.*')
->order_by('ult_camp.start_date', 'desc')
->from('ult_camp')
->where('ult_camp.status', 'Active')
->where('date(ult_camp.start_date)<=', date('Y-m-d h:m:s'))
->get()->result();
return $rs;
But this query i'm getting the data whose start_date is less than the current date.Please Help me to get this.
Any help will be appreciated. Thanks in advance.