prepare( 'SELECT t.title, t.description, a.status, u.username AS poster_username FROM applications a JOIN tasks t ON a.task_id = t.id JOIN users u ON t.user_id = u.id WHERE a.user_id = :user_id ORDER BY a.created_at DESC' ); $stmt->bindParam(':user_id', $userId, PDO::PARAM_INT); $stmt->execute(); $applications = $stmt->fetchAll(PDO::FETCH_ASSOC); } catch (PDOException $e) { // In a real application, you would log this error die("Database error: Could not retrieve your applications."); } $pageTitle = "My Applications"; include 'shared/header.php'; ?>
You have not applied for any tasks yet.

Posted by:

Status: