I have a service registration form completed, and at the end of the month I have to analyze the closing costs of the amount of services, and pay the service providers.
But the closing of the month is every 26th day, so how could I present only the services of the day (JANUARY 27 --- until --- FEBRUARY 26)?
<?php$soma_custos=mysqli_query($con,"SELECT SUM(custosgerais) FROM custos WHERE MONTH(data_baixa) BETWEEN $mes AND $mes");
?>
But the code above is only showing me the services from the 1st to the 30th of the same month.
I need to pick up from the 27th of last month until the 26th of the current month.