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 Your Tasks"; include 'shared/header.php'; ?>
Here are the tasks you've posted. Click on a task to view and manage applications.