prepare(" SELECT c.name, c.description, g.grade FROM courses c JOIN enrollments e ON c.id = e.course_id JOIN students s ON e.student_id = s.id LEFT JOIN grades g ON e.id = g.enrollment_id WHERE s.username = ? "); $stmt->execute([$_SESSION['username']]); $courses = $stmt->fetchAll(); } catch (PDOException $e) { // Handle database error error_log($e->getMessage()); } ?>
Here you can find your enrolled courses, grades, and profile information.
You are not enrolled in any courses yet.
View and edit your profile information.
Go to Profile