prepare("SELECT * FROM learners WHERE student_id = ?"); $stmt->execute([$search_id]); $learner = $stmt->fetch(); if ($learner) { // Fetch Attendance History (Last 30 days) $stmt = $db->prepare("SELECT * FROM attendance WHERE learner_id = ? ORDER BY date DESC LIMIT 30"); $stmt->execute([$learner['id']]); $attendance_history = $stmt->fetchAll(); } } include 'includes/header.php'; ?>
Stay updated on your child's progress with minimal data usage.
Grade
Attendance
0 ? round(($present / $total) * 100) : 0; ?>Status
Enrolled| Date | Status |
|---|---|
| No attendance records found for the last 30 days. | |
| = date('l, d M Y', strtotime($record['date'])) ?> | Present Absent |
Please enter a Student ID to view details.