1
I have a database of requests that contain several requests for various dates, however I need to list a report by month and their respective sums in front.
Example:
The date field in the table is Date datetime ( requesteddata_hora_) and the other fields that will be summed as float ( deposistos,profit,supplier )
$sql = "SELECT * FROM pedidos";
$result = $mysqli->query($sql);
while($row = $result->fetch_assoc()) { }
Note: in the image the month is written "Fevereio" instead of "February"
– Paulo Roberto Rosa