Welcome to your Learning Dashboard

This is your central hub for managing your educational experience.

prepare("SELECT r.role_name FROM users u JOIN roles r ON u.role_id = r.role_id WHERE u.user_id = ?"); $stmt->execute([$_SESSION['user_id']]); $role = $stmt->fetchColumn(); } catch (PDOException $e) { echo "

Could not determine user role.

"; } if ($role === 'admin') { echo '

As an administrator, you can manage all aspects of the platform from the Admin Dashboard.

'; } elseif ($role === 'instructor') { echo '

As an instructor, you can manage your courses and students.

'; } else { echo '

As a student, you can view your enrolled courses and track your progress.

'; } ?>