I have an order database that contains multiple requests for multiple dates, but I need to list a separate report per month and their respective sums up front.
Example:
ThedatefieldinthetableisasDatedatetime(date_time_order)andtheotherfieldsthatwillbeaddedasfloat(deposited,profit,vendor)
$sql="SELECT * FROM pedidos";
$result = $mysqli->query($sql);
while($row = $result->fetch_assoc()) { }