I am using this query to get all the dates between 2 dates:
$getDates="SELECT daily_rate_date FROM daily_rates WHERE daily_rate_date BETWEEN '".$checkOut."' AND '".$departureDate."' AND daily_rate_reservation=$reservationId;";
The thing is that if for example $checkOut = 03-03-2021
and $departureDate = 07-03-2021
, I get the dates:
04-03-2021
05-03-2021
06-03-2021
but i also need the $checkOut date too to be included (but not the $departureDate) :
03-03-2021
04-03-2021
05-03-2021
06-03-2021
How can I accomplish that?