Online Quiz System using PHP and MySQL Source Code ( Final Year)
Download clean, well-commented Online Quiz System using PHP and MySQL source code for final year projects — easy to run, demo-ready, and mentor-friendly.
- PHP Project
- MySQL / MongoDB
- Setup guide & demo steps
- Beginner-friendly
Keywords: source code, final year project code, Online Quiz System using PHP and MySQL Git, documentation, installation guide, php project, college project demo.
Download Source Code
Admin Features
- Admin dashboard for this final year project with category, quiz, question, user, and attempt counts
- Category add, edit, status control, display order, search, and filter
- Category soft delete where no quizzes exist
- Quiz add and edit with category, title, description, questions per attempt, time limit, marks, negative marking, shuffle flag, and status
- Quiz filtering by category and status
- Quiz deletion blocked when attempts exist
- MCQ question CRUD with four options, correct answer, explanation, and status
- Question filters by category, quiz, keyword, and status
- Bulk CSV question import
- User search and status filtering
- User activate/deactivate controls
- Admin-set user password reset
- User detail with profile and recent attempts
- Attempt listing with category, quiz, user, and date filters
- Attempt detail with per-question review
- Site settings for title, footer, default questions per attempt, and logo upload
- SQL backup download
- Admin password change and logout
Description
Online Quiz System is a final year project built with Core PHP and MySQL for students who want a production-style quiz and assessment platform. This final year project includes a public landing page, user portal, and admin control panel. Users can sign up, log in, browse active categories and quizzes, read quiz rules, start timed attempts, answer MCQs with AJAX save, submit quizzes, view results, and track attempt history. The quiz engine selects random active questions, stores selected question IDs and option shuffle order, supports marks and negative marking, and auto-submits when the timer ends. The admin side of this final year project manages categories, quizzes, questions, users, attempts, settings, logo upload, backups, and password changes. It is suitable for a final year major project in PHP, MySQL, online testing, and education technology.
The Online Quiz System using PHP and MySQL final-year Online Quiz System using PHP and MySQL source code is structured for fast setup and easy customization. You get readable code, clear folder architecture, and a guided README so you can run locally and present confidently.
Source Code Overview
Technical snapshot & environment- Project Name
- Online Quiz System using PHP and MySQL
- Language / Stack
- php
- Database
- MySQL or MongoDB
- Browsers
- Chrome, Firefox, Edge, Opera
- Included in the download
- Frontend,Backend,Database
- Run Scripts
- Documented in README (install, seed, start)
- License
- Academic use for college submission
User Features
- User signup in this final year project with name, email, optional mobile, password, and confirmation
- Login with inactive-account restriction
- Logout support
- Forgot-password token creation and reset flow
- User dashboard with attempt count and recent submitted attempts
- Profile update with name and mobile
- Password change with old-password validation
- Browse active quiz categories
- Browse quizzes under a selected category
- Quiz cards showing question count, questions per attempt, time limit, and marks
- Not-enough-questions guard before starting
- Quiz rules page before attempt
- Timed live quiz attempt
- One-question-at-a-time interface
- Next/Previous and numbered navigation
- AJAX save of selected option
- Submit confirmation
- Auto-submit when timer expires
- Result page with score breakdown and pass/fail
- Optional answer review with same shuffled option order
- Attempt history table with filters
Other Features
- Public landing page included in this final year project
- Live stats on landing page for categories, quizzes, questions, and attempts
- Core PHP architecture with no framework dependency
- No third-party quiz or AI API dependency
- Session-based authentication
password_hash()andpassword_verify()password security- Prepared statements where used
- Optional PHP mail or Gmail SMTP helper for password reset
- Random question selection using active question pool
- Persistent question and option shuffle order per attempt
- Negative marking support
- SQL backup generation
- Logo upload under
assets/images/ - Suitable for final year project demo, viva, source code review, and report preparation
How to run Online Quiz System using PHP and MySQL
- Create an empty MySQL database for this final year project, for example:
online_quiz - Import schema and seed data:
mysql -u root -p -e "CREATE DATABASE IF NOT EXISTS online_quiz CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;"
mysql -u root -p online_quiz < database.sql
mysql -u root -p online_quiz < seed.sql - Edit
config/database.php:DB_HOSTDB_USERDB_PASSDB_NAME
- Optional: edit
config/config.phpfor mail and timezone settings:MAIL_FROM_EMAILMAIL_APP_PASSWORDdate_default_timezone_set
- Copy the project folder into your PHP web root, such as XAMPP
htdocsor Linux/var/www/html. - Ensure
assets/images/is writable if logo upload is used. - Open the project in browser, for example:
- Landing:
http://localhost/Online%20Quiz/ - Categories:
http://localhost/Online%20Quiz/user/categories.php - Admin login:
http://localhost/Online%20Quiz/admin/login.php
- Landing:
Credentials
Administrator
- Email:
[email protected] - Password:
password
Active Users
[email protected]/password[email protected]/password[email protected]/password[email protected]/password
Inactive User
[email protected]/password— cannot log in until activated by admin
License
Online Quiz System using PHP and MySQL Source Code Tags
Related & Popular Project Reports
Explore more final-year projects you might be interested in
Employee Record Management System in PHP and MySQL — Source Code
Employee Record Management System project used to manage the data of the employees such as personal details, education details, work exp etc. This project will reduce the paper work of the company . Through this project company can manage all data online.
Bank Locker Management System using PHP and MySQL — Source Code
Bank Locker Management System is a web-based application that deals with bank lockers that store the valuables things of bank customers. All details of lockers are saved in the database. Bank Locker Management System project is developed using PHP with MySQLi extension. Bank Locker Management System project has three modules i.e. Banker, Sub-banker, and User
User Registration & Login and User Management System With admin panel — Source Code
User Management System is a web based technology which manages user database and provides rights to update the their details In this web application user must be registered. This web application provides a way to effectively control record & track the user details who himself/herself registered with us.
Library Management System Final Year PHP Project — Source Code
<p>Library Management System is a <strong>final year project</strong> developed using Core PHP and MySQL for students who want a complete library automation web application. This <strong>final year project</strong> includes three role-based portals: Admin, Librarian, and Student. Admins can manage librarians, students, categories, authors, publishers, books, book requests, book issues, returns, fines, reports, profile settings, and library settings. Librarians can handle daily desk operations such as student management, book management, request approval, book issuing, returns, fine collection, and reports. Students can register, browse books, request books, view issued books, check return history, view fines, and manage their profile. With automatic stock updates, fine calculation, book request workflow, printable reports, and a one-click setup installer, this project is suitable for a <strong>final year major project</strong> in PHP, MySQL, and library management systems.</p>
Event Management System Final Year PHP Project — Source Code
<p>EventPro is a <strong>final year project</strong> built with Core PHP and MySQL for students who want a complete event booking and service management web application. This <strong>final year project</strong> allows customers to register, create event bookings, select service packages such as photography, musician, decoration, and emcee, track event status, upload offline payment proof, raise event-wise queries, and submit feedback after completion. Admins can manage users, event approvals, event types, service categories, packages, payments, queries, feedback, and reports. With event lifecycle management, package-based pricing, security-question password recovery, offline payment tracking, and admin reporting, this project is suitable for a <strong>final year major project</strong> in PHP, MySQL, and event management systems.</p>
Hostel Management System in PHP — Source Code
Hostel Management System in PHP is web based application. This project used to manage the student, hostel details.Hostel Management System developed using PHP and MySQL.
Online Security Guards Hiring System using PHP and MySQL — Source Code
Online Security Guards Hiring System Project is developed using PHP with MySQLi extension. It’s a web-based application used to hire security guards. Security Guards Hiring System Project has two modules i.e. admin and user.
Teacher Subject Allocation Management System using PHP and MySQL — Source Code
“Teacher Subject Allocation Management System” is web-based application system that helps to allocate subjects to the teachers. In Teacher Subject Allocation Management System educational administrators allocate different subjects to the teacher and teacher check that allotment by their employee id and Name. In this project, we use PHP and MySQL database. It has one module i.e Admin
Blood Bank & Donor Management System — Source Code
<p>The Blood Bank and Donor Management System is a web-based application that provides a platform for donors and recipients to connect. Potential donors are able to register on the platform and provide their blood type and city of residence. People in need of blood can search for donors with the same blood type within their city. If a donor is found, they are provided with the donor’s contact information. If no donor is found, the system provides contact information for life-saving contact persons in major cities. In this way, the Blood Bank and Donor Management System facilitates the connection of donors with those in need of blood, thereby helping to save lives.</p>
Library Management System — Source Code
The Library Management System is a web-based application developed using PHP and MySQL. This system is designed to make library operations more efficient by providing a secure and user-friendly platform for library users to access and manage library resources. The system is divided into two modules: the student module and the administrator module. The student module allows library users to login to their accounts and view a list of books that have been issued, their issue date and return date. The administrator module allows for monitoring of the whole system and provides access to various functions such as book acquisition, updating book records, and managing library resources. With this system, library operations can proceed faster and more efficiently, resulting in a better experience for library users.
Online Marriage Registration System using PHP and MySQL — Source Code
Online Marriage Registration SystemO is a web-based technology that will manage the records of the marriage and generate marriage certificate. It’s an easy for Admin to retrieve the data of marriage couple. Online Marriage Registration System is an automatic system which delivers data processing in very high speed in systematic manner.
Cyber Cafe Management System — Source Code
The Cyber Café Management System is a powerful yet user-friendly platform designed to keep records of daily users in a cyber cafe. It is built with the use of PHP and a Mysql database and utilizes the MD5 encryption method to ensure that sensitive data is kept secure. The system is composed of one primary module, the admin, which grants access to the various functions and features necessary for managing a cyber cafe. By leveraging this system, cyber cafe owners can easily monitor the activity of their customers, such as the amount of time spent online and the services used, as well as access a wide variety of other features.
Quick actions
What we provide
Project reports, source code, and PPTs tailored for final-year students. Explore, or message us for a custom build.