0 ORDER BY expense_year DESC"); $sql_categories = mysqli_query($mysqli, "SELECT * FROM categories WHERE category_type = 'Expense' ORDER BY category_name ASC"); // For chart Y-axis max $largest_expense_month = 0; ?>
| Category | January | February | March | April | May | June | July | August | September | October | November | December | Total |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| = $category_name ?> | -01&dtt== "$year-$month" ?>-31"> = numfmt_format_currency($currency_format, $expense_amount_for_month, $session_company_currency) ?> | = numfmt_format_currency($currency_format, $total_expense_for_all_months, $session_company_currency) ?> | |||||||||||
| Total | 0"); $rowt = mysqli_fetch_assoc($sql_expenses); $expense_total_amount_for_month = floatval($rowt['expense_total_amount_for_month']); $grand_total_all_months += $expense_total_amount_for_month; ?>-01&dtt== "$year-$month" ?>-31"> = numfmt_format_currency($currency_format, $expense_total_amount_for_month, $session_company_currency) ?> | = numfmt_format_currency($currency_format, $grand_total_all_months, $session_company_currency) ?> |