prepare( 'SELECT id, title, description, status, created_at FROM tasks WHERE user_id = :user_id ORDER BY created_at DESC' ); $stmt->bindParam(':user_id', $userId, PDO::PARAM_INT); $stmt->execute(); $tasks = $stmt->fetchAll(PDO::FETCH_ASSOC); } catch (PDOException $e) { die("Database error: Could not retrieve your tasks."); } $pageTitle = __('manage_tasks_title'); include 'shared/header.php'; ?>
= __('manage_tasks_description') ?>