How nshoron/online_quiz_system works
Online Quiz System is a PHP/MySQL web application for teacher-managed assessments and student quiz attempts. The main workflow is role-based sign-in, teacher quiz authoring and management, student quiz discovery and timed attempts, server-side scoring and persistence, then student and teacher result review. The README also describes quiz assignment and availability controls, but the sampled code does not establish their implementation. Arrows reflect explicit excerpts or README statements; unsampled components are retained where the tree and README establish their role.
Main entry points: config.php DB and session setup · auth.php Sign-in handler · take_quiz.php Timed quiz attempt · my_results.php Attempt history
Components 20
Identity
- Login screen
index.php - Sign-in handler
auth.php - Registration form
register.php - Registration handler
register_process.php - Logout
logout.php
Teacher workflow
- Teacher dashboard
teacher/dashboard.php - Quiz authoring form
teacher/create_quiz.php - Quiz creation handler
teacher/process_quiz.php - Quiz management
teacher/manage_quizzes.php - Teacher results
teacher/view_results.php
Student workflow
- Student dashboard
student/dashboard.php - Available quizzes
student/available_quizzes.php - Timed quiz attempt
student/take_quiz.php - Attempt validation and scoring
student/process_quiz_attempt.php - Attempt history
student/my_results.php - Attempt detail
student/quiz_results.php
Shared data
- DB and session setup
config.php - Quiz data schema
database.sql - MySQL database
Other components
- Teacher or student
Connections 31
- Teacher or student → Login screen: opens
README.md - Teacher or student → Registration form: registers
README.md - Login screen → Sign-in handler: submits credentials
README.md - Registration form → Registration handler: submits registration
README.md - Sign-in handler → DB and session setup: queries users
auth.php - Registration handler → DB and session setup: checks and stores user
register_process.php - Sign-in handler → Teacher dashboard: redirects teacher
auth.php - Sign-in handler → Student dashboard: redirects student
auth.php - Teacher or student → Logout: logs out
README.md - Teacher dashboard → DB and session setup: queries activity
teacher/dashboard.php - Teacher or student → Quiz authoring form: authors quiz
README.md - Quiz authoring form → Quiz creation handler: submits quiz
teacher/create_quiz.php - Quiz creation handler → DB and session setup: stores quiz
README.md - Teacher or student → Quiz management: manages quizzes
README.md - Quiz management → DB and session setup: deletes and reads quizzes
teacher/manage_quizzes.php - Teacher or student → Teacher results: reviews results
README.md - Teacher results → DB and session setup: queries attempts
teacher/view_results.php - Teacher or student → Student dashboard: views overview
README.md - Student dashboard → DB and session setup: queries performance
student/dashboard.php - Teacher or student → Available quizzes: finds quizzes
README.md - Available quizzes → DB and session setup: reads available quizzes
student/available_quizzes.php - Teacher or student → Timed quiz attempt: takes quiz
README.md - Timed quiz attempt → DB and session setup: loads quiz
README.md - Timed quiz attempt → Attempt validation and scoring: submits answers
README.md - Attempt validation and scoring → DB and session setup: validates and stores attempt
student/process_quiz_attempt.php - Teacher or student → Attempt history: reviews history
README.md - Attempt history → DB and session setup: queries attempts
student/my_results.php - Attempt history → Attempt detail: opens details
student/my_results.php - Attempt detail → DB and session setup: queries answers
student/quiz_results.php - DB and session setup → MySQL database: connects
config.php - Quiz data schema → MySQL database: defines tables
README.md