QR Code Attendance System Using PHP and MySQL with Source Code


Welcome to the QR Code Attendance System, a cutting-edge solution designed to revolutionize traditional attendance tracking methods. Harnessing the power of PHP and MySQL, this system offers a seamless and efficient way to manage student attendance records. With the proliferation of smartphones and QR code technology, our system provides a modern alternative that eliminates the need for manual entry and minimizes administrative overhead. By simply scanning a unique QR code assigned to each student, attendance can be swiftly and accurately recorded, ensuring hassle-free tracking and reducing the likelihood of errors.

Our QR Code Attendance System is not just about convenience; it's about enhancing efficiency and transparency in educational institutions. Administrators can effortlessly monitor attendance in real-time, gaining valuable insights into attendance patterns and trends. Additionally, the system's user-friendly interface allows for easy student management, enabling administrators to add, update, and maintain student information with ease. Whether it's tracking attendance for lectures, seminars, or extracurricular activities, our system empowers educational institutions to streamline their operations and focus on what truly matters: providing quality education.

You may also check some simple PHP and MySQL projects:


  1. QR Code Scanning: Students can quickly mark their attendance by scanning a unique QR code assigned to them.
  2. Real-time Updates: Attendance records are instantly updated in the system, providing administrators with real-time insights.
  3. Student Management: Easily manage student information, including names, courses, and sections.
  4. Data Visualization: Generate comprehensive reports and analytics to track attendance trends over time.

Technologies Used:

  1. PHP: The backend scripting language used for server-side logic and database interactions.
  2. MySQL: A powerful relational database management system employed for storing and retrieving attendance data efficiently.
  3. Bootstrap: Incorporates Bootstrap framework for responsive and visually appealing front-end design.
  4. jQuery: Enhances interactivity and functionality of the web application.
  5. Instascan: Integrates Instascan library for QR code scanning functionality.

How to Use:

  1. Scan QR Code: Students should launch the QR Code Attendance System and scan their unique QR code displayed on their devices.
  2. Record Attendance: Upon successful scanning, the system automatically records the student's attendance.
  3. View Attendance Records: Administrators can view and manage attendance records, including student names, courses, sections, and time in.
  4. Add and Manage Students: Easily add new students to the system or update existing student information via the provided interface.
  5. Generate QR Codes: Generate QR codes for new students and associate them with their profiles for seamless attendance tracking.

Sample Screenshots of the Project:

Landing Page

Student Masterlist Page

Add Student Modal

Sample Generated QR Code

Added Student

Scanning QR Code

QR Detected Notification

Added Attendance

How to Run?

  • Download and Install XAMPP.
  • Download the provided source code zip file.

Note: The database is included on the provided zip file.


  • Create a database named "qr_attendance_db" in phpMyAdmin MySQL.
  • Transfer the provided source code to the htdocs folder.
  • Import the provided SQL file into the created database.
  • Open your browser with the link "http://localhost/qr-code-attendance-system/".

Video Demonstration for Installation/Setup:


In conclusion, the QR Code Attendance System stands as a testament to the innovative possibilities that emerge at the intersection of technology and education. By leveraging QR code technology alongside robust PHP and MySQL infrastructure, we've created a solution that not only simplifies attendance tracking but also enhances overall administrative efficiency in educational settings. With its user-friendly interface, real-time updates, and comprehensive reporting capabilities, our system empowers institutions to optimize their attendance management processes, freeing up valuable time and resources to dedicate to academic pursuits. As we continue to embrace technological advancements, the QR Code Attendance System serves as a beacon of progress, illustrating how modern solutions can transform traditional practices for the betterment of educators and learners alike.

That's it! I hope this "QR Code Attendance System Using PHP and MySQL" will assist you on your programming journey, providing value to your current and upcoming PHP projects.

For additional tutorials and free source code, explore our websites.  

Enjoy Coding :>>

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 SourceCodester.com 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.


Add new comment