| Category | January | February | March | April | May | June | July | August | September | October | November | December | Total |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Total | 0 AND YEAR(revenue_date) = $year AND MONTH(revenue_date) = $month AND revenues.company_id = $session_company_id"); $row = mysqli_fetch_array($sql_revenues); $revenues_total_amount_for_month = $row['revenue_amount_for_month']; $payment_total_amount_for_month = $payment_total_amount_for_month + $revenues_total_amount_for_month; $total_payment_for_all_months = $payment_total_amount_for_month + $total_payment_for_all_months; ?>