0
I have a service registration form, 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 day 26, so how could I present only the services of the day (27 JANUARY --- until --- 26 FEBRUARY)?
<?php
$soma_custos = mysqli_query($con, "SELECT SUM(custosgerais) FROM custos WHERE MONTH(data_baixa) BETWEEN $mes AND $mes");
?>
But the above code for now is only showing me the services from day 1 to day 30 of the same month.
I need to pick up from the 27th of last month until the 26th of the current month.
Welcome Gabriel Pires, if any answer has solved your problem be sure to mark it as
aceita
see how and why in this post https://pt.meta.stackoverflow.com/questions/1078/como-e-por-que-aceitar-uma-resposta/1079#1079– user60252