Event Registration System with QR Code in PHP Free Source Code



This is a PHP Project is entitled Event Registration System with QR Code. This project manages the attendance/registration records of attendees or guests/listeners of an event. The system uses a QR Code (Quick Response Code) in checking the attendance of the attendee. This system is web-based software.

About the Event Registration System with QR Code

This project was developed using PHP, MySQL Database, HTML, CSS, Javascript (Ajax and jQuery), Bootstrap, and AdminLTE template, and other plugins and libraries. I used PHP version 8.0.7 and XAMPP version 3.3.0 in developing the system. I have created this project to help other programmers especially those new in PHP Language and IT/CS Students.

The system has 2 types of users which are the Admin and Registrar. The Admin manages all the data stores in the system such as the list of users, events, audience, and more. The admin user can also generate a printable report for each event. The Registrar is in charge of scanning and storing the event's audience or attendees. This user can only see the list of events that are assigned to him/her. The project has a pleasant user interface and user-friendly functionalities.


Admin Side

  • Secure Login/Logout
  • Admin Dashboard
  • Manages Event List
  • Manages Event's Audience/Attendees List
  • Manages User List
  • Manage System Informations
  • Update Account Details/Credentials

Registrar Side

  • Secure Login/Logout
  • Assigned Event List
  • Searchable Event List
  • Live Monitoring For Attendance/Registration List
  • Searchable Present Attendees
  • Admin QR Code Scanning in Checking Attendees Attendance
  • Mobile Responsive User Interface

System Sample Snapshots

Registrar Home Page


Attendance/Registration List (Registrar Side)


Mobile Side QR Code Scanning Page


Admin Panel


Printable Attendees QR Code


Printable Report


This project source code is free to download on this website. I have created/developed this project for educational purposes only.

How to Run


  • Download and Install any local web server such as XAMPP/WAMP.
  • Download the provided source code zip file. (download button is located below)


  1. Open your XAMPP/WAMP's Control Panel and start the Apache and MySQL.
  2. Extract the downloaded source code zip file.
  3. If you are using XAMPP, copy the extracted source code folder and paste it into the XAMPP's "htdocs" directory. And If you are using WAMP, paste it into the "www" directory.
  4. Browse the PHPMyAdmin in a browser. i.e. http://localhost/phpmyadmin
  5. Create a new database naming event_db.
  6. Import the provided SQL file. The file is known as event_db.sql located inside the database folder.
  7. Browse the Event Registration System with QR Code in a browser. i.e. http://localhost/event.

Admin Access Information

Username: admin
Password: admin123

Sample Registrar Access Information

Username: jsmith
Password: jsmith


Note: The default registrar's user password is [firstname first letter] + [lastname] and all lowercase. If you will host this project online, use hosting with ssl so you can use the device camera for QR Code Scanning.

That's it! I hope this project will help you with what you are looking for and for your future PHP projects. You might find some useful techniques in the source code that might help you in your PHP projects. Feel Free to download and modify the source code the way you wanted.

Explore more on this website for more Free Source Code and Tutorials.

Happy 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.


Submitted byJavaScript (not verified)on Sat, 09/18/2021 - 01:12

Hey, the admin login is giving an error as Access Denied by localhost. Any solution for the same?

Hi, did you enter the admin credentials at the Admin Login? Please make sure that you are at the Admin Side of the system which means the URL should be http://localhost/event/admin. If still not working, check the database if the users' table has data. Let me know if it still won't work. Thank you

Submitted byJust a random guy (not verified)on Fri, 05/19/2023 - 23:14

In reply to by JavaScript (not verified)

It more likely you left an either admin or registrar panel, just login to each mode then if you logged in, just properly click the log out button so that you can login to another role properly
Submitted byMilan95lk (not verified)on Mon, 11/15/2021 - 01:02

I had a same problem ( Access Denied ). Entered Admin passwords but not working
Submitted bykirosteo (not verified)on Tue, 11/16/2021 - 14:29

sir, when i change the ip address to my own one, then scanner cannot work. It show "unable to query supported devices". How to solve this issue?
Submitted byFabtux (not verified)on Wed, 12/08/2021 - 10:46

You need to update /classes/dbconnection.php with your root password and replace "localhost" with "" Then you should be able to connect without problem.
Submitted byJames Dare (not verified)on Mon, 01/17/2022 - 07:27

Error New Event
Submitted byjamlikeyou (not verified)on Tue, 04/19/2022 - 10:02

Hi Sir! Can you add a registration page so that users can register without the need of the admin creating the user?
Submitted byCarla Jackson (not verified)on Tue, 04/19/2022 - 10:52

Hi, can you help me, when I click the print on the report, there is no text on the page, it didn't show the information about the vents as well as the audiences that attended on that event.
Submitted byxCarla Jackson (not verified)on Tue, 04/19/2022 - 10:55

Hi, can you help me, when I click the print on the report, there is no text on the page, it didn't show the information about the vents as well as the audiences that attended on that event.
Submitted bymark rumbaoa (not verified)on Tue, 11/22/2022 - 16:37

Thank you for that opportunity, thank you po sa source code 💯🎉🎀
Submitted byAaron Karl Panton (not verified)on Mon, 12/19/2022 - 20:45

if localhost says "Access Denied" you must logout first from, simple solution
Submitted byTrix Torres (not verified)on Mon, 01/23/2023 - 21:02

Im trying to add new guests but the QRcodes doesnt Generate. Hope that there's a way to fix this.

If you are using xampp just find the php.ini file from xampp/php. Find the comment inside ;extension=gd change it to extension=gd (just remove semi-colon ";" ) restart xampp, Done.
Submitted byTrix Torres (not verified)on Mon, 01/23/2023 - 21:03

Im trying to add guests on the list but it doesnt generate a QR code. Is there a way to fix this ?
Submitted byAbu Faathir (not verified)on Sun, 03/05/2023 - 11:40

can't print report in mozilla browser but can print using google chrome and microsoft edge, what's the reason?
Submitted byodracap (not verified)on Fri, 05/19/2023 - 23:25

I just found out how to deal the issues to: ~localhost denied: This issue is triggered when you login already to the registrar panel and tries to login again in the admin side, to fix it just go to http://localhost/event/portal.php (I am using xampp server) and login with the registrar. Then properly click the log out button from the registrar. ~Error when adding an audience/guest(xampp server): This is caused by disable gd extension of php in xampp. To fix it, go to xampp/php/ and find the php.ini file, Ctrl + F. Type gd then it will show ";extension=gd". Just remove the ; and Save, and restart the server, Done.
Submitted byMoEzat (not verified)on Thu, 06/01/2023 - 17:11

how can i install it online , i create subdomain m database ,and uploade file to the subdomain directory , what the next step i should do can you help me ?
Submitted byMarvel maro (not verified)on Mon, 06/05/2023 - 17:20

Please I my website just shows scanning and even if the qrcode is displayed in the box, it still shows scanning
Submitted byYaser76 (not verified)on Sat, 11/11/2023 - 07:58

I can't open the link in my browser. It says the requested URL was not found on this server.
Submitted byConcernedStudent (not verified)on Mon, 01/15/2024 - 22:11

it said "Not Found The requested URL was not found on this server."
Submitted byfalakbdon Mon, 04/15/2024 - 18:10

This program is very helpful. I uploaded this program on my domain. everything works fine except camera. If i run from mobile after tapping "Scan QR" nothing shows on IOS device but works on Android. Camera works on android not in IOS.

Submitted byNavish Ansari (not verified)on Sat, 04/27/2024 - 03:56


Add new comment