Simple Online Quiz System Project using PHP with Source Code


Simple Online Quiz System using PHP with free source code. This project was developed using HTML5, CSS, PHP, JavaScript, jQuery, Ajax and Bootstrap [ ]. In this project, the faculty of the school can create their quizzes or even homework quizzes. To learn about this project please continue reading.

About the Project

The Simple Online Quiz System is a project that can be used for educational purposes. This project will help faculty to manage the student quizzes records. Faculty can also monitor if the student already has taken the quiz and how many students have already taken the quiz. Faculty can create questions as much as he/she wants and answerable by choosing four options. Quizzes are restricted to the selected students who are listed by the faculty. Each option is randomly queued per question and so is the question per quizzes. The student can immediately know his/her score after submitting the quiz and also can review their answer sheet to know which question they answered wrong and right.

Project Features

  • Login Page - This page helps to secure the project data and also to helps to manage users' access.
  • Home Page - This page is the welcoming page or the page where the user is redirected after logging in to the system. On this page also, quizzes summary can be seen.
  • Faculty Page - On this page, the administrator will manage the faculty list such as creating new and updating and deleting data of the faculty.
  • Student Page - At this. page, both faculty, and administrator can manage this page. This is where student data are listed and being managed.
  • Quiz List for Faculty - This page is where can faculty create quizzes and add students who can take the quiz. On this page, the Administrator can also manage quizzes.
  • Quiz List for Student - This page where student quizzes are listed.
  • Answer Sheet Page - This is the page where the student will answer their quiz.
  • Quiz Record Page - On this page, admin and faculty can see the records of the students each quiz

How to Install

  1. Download the source code and extract the zip file.
  2. Download or set up any local web server that runs a PHP script.
  3. Open web server database and create a new database name it quiz_db.
  4. Import the SQL file located in the database folder of the source code.
  5. Copy and paste the source code to the location where your local web server accessing your local projects. example for XAMPP('C:\xampp\htdocs')
  6. Open a web browser and browse the project. e.g [ http://localhost/online-quiz-system ]

Admin Access

Username: admin

Password: admin123

I hope this project will help you with what you are looking for. Feel free to download and modify.

Explore this website for more source code or tutorials.


Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Virus note: All files are scanned once-a-day by for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.


1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.


Submitted byvictori (not verified)on Wed, 09/09/2020 - 22:25

thanks good work
Submitted byEllle (not verified)on Thu, 01/21/2021 - 01:55

Thank you for this. This is amazing! But I have a question. Is the database page not really included? Database.php is not available.
Submitted byChamp Stark (not verified)on Fri, 04/02/2021 - 13:58

Can someone provide the ER Diagram of this project?
Submitted bychance password (not verified)on Wed, 04/28/2021 - 07:33

You can change password by finding its cryptographic hash in register page then go to phpmyadmin and change password with the encoding hash found ( md5 might be helpful)
Submitted byMwasNd (not verified)on Wed, 05/12/2021 - 04:51

Kindly share the username and password
Submitted byDr Sajid Ali (not verified)on Thu, 08/05/2021 - 21:35

its a great effort and worth appreciatable. I have a suggestion as each quesiton has its own pionts (marks) i suggest the the quiz starts form lowest point (easy question) and if the anwser was correct it should redirect to question of high pionts if was wrong it should redirect easy question. This will be a a difficutly based quiz

Add new comment