date wise search codeigniter

 if(!empty($startdate))

        {
            $this->db->where('DATE(pickupman_received_date) >=', $startdate);    
        }
        if(!empty($enddate))
        {      
            $this->db->where('DATE(pickupman_received_date) <=', $enddate);      
        }

Comments

Popular posts from this blog

all customer due sql query