Online Voting System Project using PHP/MySQL

Language

The Online Voting System is a simple project using PHP/MySQL. To develop this project, I have used HTML for the page layout, CSS, and Bootstrap for the designs, JavaScript (jQuery / Ajax) for UI/UX. This simple project explains how do polling systems do work. Feel free to download and modify the source code.

About the Project

The Online Voting System is a simple project that represents the Election Voting Process such as school officer elections. The system is easy to use for both admin and voters sides. The admin will manage all the polling data requirements which are the Category (the category will represent the positions), voting list, and the user or the voters. The admin can create and manage candidates and the maximum count of voter's selection per category. The voters can also view the poll standings after they vote.

Features

Admin Side

  • Home Page
    • Display the standings of the election. 
  • Category Page
    • The page where an admin manages the category list.
  • Voting Page
    • The page where the admin can manage the list of voting sheets. This is also the page where the admin will set the default voting sheet to be used by the system.
  • Voting Sheet
    • The page where the admin will manage the voting sheet.

Voter's Side

  • Voting Sheet
    • The page where the voters will vote their selected candidates per category.
  • Standings Page
    • The page where can voters view the standings of the election.

How to Run

  1. Download the source code and extract the zip file.
  2. Download or set up any local web server that runs PHP script.
  3. Open the web-server database and create a new database name it voting_db.
  4. Import the SQL file located in the database folder of the source code.
  5. Copy and paste the source code to the location where your local web server accessing your local projects. Example for XAMPP('C:\xampp\htdocs')
  6. Open a web browser and browse the project. e.g [ http://localhost/online-voting-system-using-php ]

There is it, the project is ready to use. 

Default Admin Access

USERNAME: admin

PASSWORD: admin123

I hope this project will help you with what you are looking for.

Explore this website for more Source Code and Tutorials.

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 SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:

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.

Comments

Submitted bymar Dollar (not verified)on Sat, 04/17/2021 - 11:06

Notice : Undefined offset: 4 in C:\xampp\htdocs\voting\view_vote.php on line 71 Warning : Invalid argument supplied for foreach() in C:\xampp\htdocs\voting\view_vote.php on line 71 How ?
Submitted byOpoku Samuel (not verified)on Sun, 06/20/2021 - 08:52

Please can you get me the code for deleting users using the Ajax?

Add new comment