Update attendance.php