/* Dashboard ke Totals wale section mein ye line add karein */
$stmt_count = $pdo->prepare("SELECT COUNT(id) as total_items FROM expenses WHERE MONTH(expense_date) = ? AND YEAR(expense_date) = ?");
$stmt_count->execute([$month, $year]);
$item_count = $stmt_count->fetch()['total_items'] ?? 0;
?>
Total Items
Warning: Undefined variable $item_count in /home4/dayswith/public_html/accountra/modules/dashboard/index.php on line 11
Total Savings
₹
Warning: Undefined variable $total_savings in /home4/dayswith/public_html/accountra/modules/dashboard/index.php on line 17
Deprecated: number_format(): Passing null to parameter #1 ($num) of type float is deprecated in /home4/dayswith/public_html/accountra/modules/dashboard/index.php on line 17
0.00