prepare("SELECT * FROM leave_requests WHERE student_id = ? ORDER BY created_at DESC"); $stmt->execute([$_SESSION['user_id']]); $leave_requests = $stmt->fetchAll(); } catch (PDOException $e) { // handle error } ?>
| Leave Type | Start Date | End Date | Status |
|---|---|---|---|