$expiry = date('Y-m-d',strtotime(' - 2 days'));
echo $expiry;
$data['booking_compeletation'] = 4;
$data['booking_status'] = 1;
$data['notification']=1;
$this->db->where(['booking_status'=>0,'booking_compeletation' => 1,'booking_check_out' > date('d-m-Y',strtotime(' - 2 days'))]);
$this->db->update('hotel_rooms_booking',$data);