Online Voting System using PHP and SQLite with Free Source Code


This project is entitled Online Voting System (Government Official Election). This is a web-based application that provides online voting for government officials. This project handles a nationwide vote submission and counting. This has also a live vote result view page where can visitors/voters can view the voting results of each candidate. This can generate a Printable Voting Result with an Advance Filtering Feature which system user can filer the votes gathered of each candidate in each specific area (Regional, Provincial, District, and per City/Municipalities).

I developed this project using the following:

  • XAMPP v3.3.0 as my local webserver that has a PHP Version 8.0.7
  • PHP Language
  • SQLite Database
  • HTML
  • CSS
  • JavaScript
  • jQuery
  • Ajax
  • Bootstrap
  • and more...

About the Online Voting System (Government Official Election) Project

This web application contains 2 modules which are the Admin and Voters Module. The Admin Module is the side of the project where can system management can manage the list of candidates, voters, results, and locations/areas.

The Admin module or panel can be accessed by 2 types of user roles/types which are the Administrator and the Staff users. The Administrator user has access and is allowed to use all the features and functionalities in the said module while Staff Users have only limited permissions.

The Voters module is the side of the system which can be accessed by voters. The voters can register their system credentials so they can access and submit their vote ballot. The voters can only successfully access the voting feature of the system if the management has already updated his/her status to the validated voter. Each voter is required to register for each election and they can only vote once.

In the voting ballot form, the system will show all the list of the candidates that only cover the city area of the voters which means voters can not put a vote to a candidate of a different area.

Project Features

Admin Side

  • Secure Login/Logout
  • Home Page
  • Manage Voters List
  • Manage Candidate List
  • View Vote Result
  • Filter Result by Position
  • Filter Result by Position Coverage
  • Filter Result by Location
  • Manage System Users List
  • Maintenance
    • Manage List of Regions in the Country
    • Manage List of Province in each Region
    • Manage List of District in each Province
    • Manage List of City in each District
    • Manage List of Election Set
    • Manage List of Position
    • Manage Position Order
  • Manage Account Credentials
  • Logout

Voters Side

  • Secure Login and Registration
  • Vote desired candidates in each position
  • Submit Vote Ballot
  • View All Chosen Candidates
  • Manage Account Credentials
  • Logout

Public Side

  • Live Monitoring of Vote Result

Some of the System Snapshots

Live Result Monitoring Page (Public)

Online Voting System (Government Official Election)

Voters Submitted Ballot Page

Online Voting System (Government Official Election)

Admin Dashboard

Online Voting System (Government Official Election)

Candidate List

Online Voting System (Government Official Election)

Voters List

Online Voting System (Government Official Election)

Result Page

Online Voting System (Government Official Election)

Result Print View

Online Voting System (Government Official Election)

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 php.ini file and uncomment the sqlite3 and gd extension. Then, save the file.
  2. Open your XAMPP/WAMP's Control Panel and start Apache.
  3. Extract the downloaded source code zip file.
  4. 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.
  5. Browse the Online Voting System (Government Official Election) in a browser. i.e. http://localhost/voting/.

Default Admin Access

Username: admin
Password: admin123

Note: Validate voters account first at the admin so the voter can log in successfully


That's it! You can now explore the features and functionalities of this Online Voting System (Government Official Election) project in PHP and SQLite Database. I hope this will help you with what you are looking for and you'll find something useful for your future PHP Projects.

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

Note: This project was only developed for educational purposes only.

Enjoy :)

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.


Add new comment