Online Quiz System using PHP and MySQL | Source Code
LIMITED TIME
Get Source Code ₹99
Open Live Demo
Real project UI Full source included Opens in new tab

Tap to open live demo

Interactive live demo — verify the project before you buy

Online Quiz System using PHP and MySQL

Live Demo

Complete final-year project source code with frontend, backend, database, and setup guide. Instant download after secure payment.

  • PHP Stack
  • Instant Download
Secure CCAvenue payment Instant download link WhatsApp support

Choose your plan

Source Code Only

Full ZIP with frontend, backend, database & documentation.

₹99 one-time
  • Complete project source files
  • Database script included
  • How-to-run guide

What's in your download

Review features, setup steps, and credentials before you pay.

Project Overview

Description, tech stack, and what is included

Full source Frontend + backend
Database .sql file
Setup guide README included

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.

Technical snapshot

Project
Online Quiz System using PHP and MySQL
Stack
PHP
Includes
Code, DB, README
License
Academic submission
Secure CCAvenue payment · Instant download · Need help? WhatsApp us

Ready to download?Pay once · Use for submission & viva

Admin Features

Modules and controls available to administrators

  • 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

User Features

What end users can do in this application

  • 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

Additional capabilities included in the project

  • 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() and password_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

Step-by-step setup on your laptop or PC

  1. Create an empty MySQL database for this final year project, for example:
    online_quiz
  2. 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
  3. Edit config/database.php:
    • DB_HOST
    • DB_USER
    • DB_PASS
    • DB_NAME
  4. Optional: edit config/config.php for mail and timezone settings:
    • MAIL_FROM_EMAIL
    • MAIL_APP_PASSWORD
    • date_default_timezone_set
  5. Copy the project folder into your PHP web root, such as XAMPP htdocs or Linux /var/www/html.
  6. Ensure assets/images/ is writable if logo upload is used.
  7. 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

Login Credentials

Default demo accounts for testing after setup

Administrator

Active Users

Inactive User

License

Usage terms for academic and personal projects

Related Tags

Search terms and categories for this source code

Online Quiz System using PHP and MySQL Source Code Final Year PHP Project Ready-to-Run Code With Database File Plagiarism-Free Faculty Approved online quiz system final year project PHP quiz management system MCQ test portal online test system source code timed quiz project random question quiz system AJAX answer save project PHP MySQL final year project quiz admin panel online assessment project