prepare("SELECT email FROM users WHERE id = ?"); $stmt->execute([$user_id]); $user = $stmt->fetch(); if ($user && $user['email']) { $email = htmlspecialchars($user['email']); } } catch (PDOException $e) { // Log error or handle it gracefully // For now, we just use the default } $page_title = "Settings"; ?>