query("SELECT id, expense_date, description, amount, category FROM expenses ORDER BY expense_date DESC"); $expenses = $stmt->fetchAll(PDO::FETCH_ASSOC); } catch (PDOException $e) { // Handle error, for now just display a message echo '
| Date | Description | Amount | Category | Actions |
|---|---|---|---|---|
| No expenses found. | ||||