prepare("SELECT * FROM users WHERE id = 1"); $stmt->execute(); $user = $stmt->fetch(); $stmt = db()->prepare("SELECT * FROM wallets WHERE user_id = 1"); $stmt->execute(); $wallets = $stmt->fetchAll(); // Index wallets by type for easy access $walletMap = []; foreach ($wallets as $w) { $walletMap[$w['type']] = $w; } } catch (Exception $e) { die("Error connecting to database: " . $e->getMessage()); } $projectDescription = $_SERVER['PROJECT_DESCRIPTION'] ?? 'AfriPay-Tontine: Comprehensive financial services for West Africa.'; $projectImageUrl = $_SERVER['PROJECT_IMAGE_URL'] ?? ''; ?>
Your financial overview in = $user['country'] ?>