Activity Center
Stay updated with your latest matches and investments.
prepare("SELECT * FROM users WHERE id = ?"); $stmt->execute([$user_id]); $user = $stmt->fetch(); if (!$user) { header('Location: login.php'); exit; } $platformName = defined('PLATFORM_NAME') ? PLATFORM_NAME : 'Gatsby'; if (isset($_POST['mark_read'])) { $stmt = db()->prepare("UPDATE notifications SET is_read = 1 WHERE user_id = ?"); $stmt->execute([$user_id]); } $stmt = db()->prepare("SELECT * FROM notifications WHERE user_id = ? ORDER BY created_at DESC"); $stmt->execute([$user_id]); $notifications = $stmt->fetchAll(); ?>
Stay updated with your latest matches and investments.