prepare($query); $stmt->bindValue(':userId', $userId, SQLITE3_INTEGER); $result = $stmt->execute(); $row = $result->fetchArray(SQLITE3_ASSOC); $code = $row['code']; require_once 'includes/stats_calculations.php'; ?>

1) { ?>
1) { // sort categories by order usort($categories, function ($a, $b) { return $a['order'] - $b['order']; }); ?>
0) { if ($category['name'] == "No category") { $category['name'] = translate("no_category", $i18n); } $selectedClass = ''; if (isset($_GET['category']) && $_GET['category'] == $category['id']) { $selectedClass = 'selected'; } ?>
1) { usort($paymentMethods, function ($a, $b) { return $a['order'] <=> $b['order']; }); ?>
<?= $mostExpensiveSubscription['name'] ?>
%
0) { ?>
0) { ?>
html_entity_decode($category['name']), "y" => $category["cost"], ]; } } } $showCategoryCostGraph = count($categoryDataPoints) > 1; $memberDataPoints = []; if (isset($memberCost)) { foreach ($memberCost as $member) { if ($member['cost'] != 0) { $memberDataPoints[] = [ "label" => html_entity_decode($member['name']), "y" => $member["cost"], ]; } } } $showMemberCostGraph = count($memberDataPoints) > 1; $paymentMethodDataPoints = []; foreach ($paymentMethodsCount as $paymentMethod) { if ($paymentMethod['count'] != 0) { $paymentMethodDataPoints[] = [ "label" => html_entity_decode($paymentMethod['name']), "y" => $paymentMethod["count"], ]; } } $showPaymentMethodsGraph = count($paymentMethodDataPoints) > 1; if ($showCategoryCostGraph || $showMemberCostGraph || $showPaymentMethodsGraph || $showTotalMonthlyCostGraph || $showVsBudgetGraph) { ?>

()
()
()
()