prepare("SELECT * FROM users WHERE username = ?"); $stmt->execute([$username]); $user = $stmt->fetch(); // Fetch user attendance $stmt = db()->prepare("SELECT attendance_date, status FROM attendance WHERE user_id = ? ORDER BY attendance_date DESC"); $stmt->execute([$user['id']]); $attendance_records = $stmt->fetchAll(); ?> Employee Profile

Employee Profile

Profile Details

Name:

Username:

Role:

Attendance History
Date Status
No attendance records found.