Voting System In PHP With Source Code

Project: Voting System in PHP with source code

– To download Voting System project for free (scroll down)

About Project

Voting System project is developed using PHP, JavaScript, Bootstrap, and CSS. Talking about the project, it has lots of essential features. This project contains a Voter’s login side where a voter can Sign in to vote and Admin Panel where he/she can view total votes, add and list voters, positions, candidates and many more. While logging in from voter’s login, the user should provide Voters ID in order to log in to the system to vote. The voter’s id can be retrieved from the Admin Panel.

About System

Admin has full control of the system, all the functions are to be performed from Admin panel. Here, the user can view total votes with respective voters name, add and list voters, positions, candidates, view ballot positions, edit election title and edit admin’s profile. To vote for an election, you need a voter and to add a voter, the user has to provide first and last name, password and upload a photo. Likewise, to add a position a short description and the maximum vote value should be provided. All the candidates can be views from the admin panel with their respective positions and similarly to add candidates for an election the user should provide a first name and last name, select position, upload a photo and write the platform.

Ballot positions can be maintained for the voters according to the admin’s will and the admin can change the election title easily anytime he/she wants. After all the votings, total votes can be viewed from Votes navigation, which displays Position with candidate and voter name. Before logging in as a voter, the user needs a voter account and a voter id. That can be retrieved from Voters List, the system generates Voters id automatically and the user has to copy it then paste in voter’s login section and provide a password to continue as a voter. A clean and responsive dashboard is provided in the admin panel for the easy management of the voting system. Voting system in PHP helps in easy management of the votes for certain objectives. Design of this project is pretty and responsive so that user won’t find it difficult to understand, use and navigate.

To run this project you must have installed virtual server i.e XAMPP on your pc (for Windows). Voting system in PHP is free to download with source code, Use for educational purposes only! For the project demo, have a look at the image slider below.

Features:

  1. Voter’s Login
  2. Admin Panel
  3. View and reset votes
  4. CRUD Voters
  5. CRUD Position
  6. CRUD Candidates
  7. Ballot Positions
  8. Select Election Titles
How To Run??

After Starting Apache and MySQL in XAMPP, follow the following steps

1st Step: Extract file
2nd Step: Copy the main project folder
3rd Step: Paste in xampp/htdocs/

Now Connecting Database

4th Step: Open a browser and go to URL “http://localhost/phpmyadmin/”
5th Step: Then, click on databases tab
6th Step: Create database naming “votesystem” and then click on import tab
7th Step: Click on browse file and select “votesystem.sql” file which is inside “database” folder
8th Step: Click on go.

After Creating Database,

9th Step: Open a browser and go to URL “http://localhost/votesystem/”
For Admin Panel
Final Step: Go To URL “http://localhost/votesystem/admin/”
Insert the username and password which is provided inside the “Readme.txt” file.
Note: Voter ID can be retrieved from Admin Panel – voters list. Copy the Voters ID from Voters List, Admin Panel and Paste it to Voter’s Login in order to proceed for voting.

LOGIN DETAILS ARE PROVIDED IN “Readme.txt” FILE INSIDE PROJECT FOLDER

DOWNLOAD VOTING SYSTEM IN PHP WITH SOURCE CODE: CLICK THE BUTTON BELOW

project demo


4 1 vote
Article Rating
Subscribe
Notify of
guest
127 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
govind
govind
5 years ago

i am finding error that
( ! ) Fatal error: Call to undefined function password_verify() in C:wampwwwvotesystemlogin.php on line 17
Call Stack
# Time Memory Function Location
1 0.0009 373752 {main}( ) ..login.php:0

govindraj
govindraj
5 years ago

finding error
( ! ) Fatal error: Call to undefined function password_verify() in C:wampwwwvotesystemlogin.php on line 17
Call Stack
# Time Memory Function Location
1 0.0009 373752 {main}( ) ..login.php:0

anto
anto
5 years ago

i am finding error how do i solve the issue.
Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in C:wamp64wwwbusreservationdb.php on line 7
Call Stack
# Time Memory Function Location
1 0.0024 240256 {main}( ) …deleteres.php:0
2 0.0041 243608 include( ‘C:wamp64wwwbusreservationdb.php’ ) …deleteres.php:4
3 0.0041 244544 mysql_connect ( ) …db.php:7
Could not select database

VJ Mwiiya
VJ Mwiiya
5 years ago

It works very fine. Please include column for adding new user. The added users should be standard user who can only see voters and add voters.

VJ Mwiiya
VJ Mwiiya
5 years ago

It is restricted to one user. Lets have an allowance to add standard users. Thanks

jun inquig
jun inquig
1 year ago
Reply to  VJ Mwiiya

You can add users from the admin panel. The user panel has no privilege of adding another user in the system.

goutham
goutham
5 years ago

i cant find login for admin pannel what should i do…

Naseeb Bajracharya
5 years ago
Reply to  goutham

Voter’s login is in the index page and for the admin panel check the post description

poojasambath
poojasambath
5 years ago

plz send me this code([email protected])

Abhilash Annamreddi
Abhilash Annamreddi
3 years ago
Reply to  poojasambath

did you got it running

José Silva Solís
José Silva Solís
5 years ago

NO PUEDO INICIAR SESION, YA PUSE PHP A 5.6 Y NADA 🙁

José Silva Solís
José Silva Solís
5 years ago

I CAN NOT SESSION START, I ALREADY PUT PHP TO 5.6 AND NOTHING, help

Isaac Ajeh
3 years ago

i am finding error that
( ! ) Fatal error: Call to undefined function password_verify() in C:wampwwwvotesystemlogin.php on line 17
Call Stack

José Silva Solís
José Silva Solís
5 years ago

I CAN NOT SESSION START, I ALREADY PUT PHP TO 5.6 AND NOTHING, help!!!!!!!!!!!!!

Naseeb Bajracharya
5 years ago

What’s your main problem? can you please send your screenshot at [email protected]

abdulkadir
abdulkadir
4 years ago

I CAN’T PRINT THE RESULT OF THE ELECTION
Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in C:\xampp\htdocs\VotingSystem_PHP\votesystem\tcpdf\tcpdf.php on line 17778
TCPDF ERROR: Some data has already been output, can’t send PDF file

Software developer
3 years ago

Xbxbxb

Teklehaimanot
5 years ago

your project is very smart but at the first page(voter id and password )can not allow me to access it please help me how can i get to admin to votesystem

perry
perry
5 years ago

how can the student view all the poll results?

jun inquig
jun inquig
1 year ago
Reply to  perry

The student or user cannot view the poll results. Its in the admin panel.

perry
perry
5 years ago

how can the voters view all the poll results?

senta
senta
5 years ago

nice, thanks. how to change the language to Indonesian?

Sanjana dp
Sanjana dp
3 years ago
Reply to  senta

I m not able to get the registration page

noah
noah
5 years ago

how to create one more admin? i already insert new admin in the database but it keep saying “incorrect password”. how to generate random password in mysql?

Tasleem
Tasleem
5 years ago

Warning: mysqli::__construct(): (HY000/1049): Unknown database ‘votesystem’ in D:xampphtdocsvotesystemadminincludesconn.php on line 2
Connection failed: Unknown database ‘votesystem

Abhilash Annamreddi
Abhilash Annamreddi
3 years ago
Reply to  Fabian Ros

after that i am facing 404 error not found
the request url is not on this server how to resolve this

Roblox
Roblox
5 years ago

The system allows me to vote for two candidates at the same time, as I do to only vote for one?

jun inquig
jun inquig
1 year ago
Reply to  Roblox

You need to configure the maximum vote for each position from the admin panel

Guest
Guest
5 years ago

Incorrect p

zana
zana
5 years ago

Thank You … How I can change username and password, Please.
Thank you For Help me…

joy
joy
5 years ago

what is the url address of voters page ? i can find it only the admin

Augustus
Augustus
5 years ago

1. how do i insert bulk voters
2. how do i create other users and restrict their roles

Steve
Steve
1 year ago
Reply to  Augustus

Did you find out a solution for bulk voters upload?

Rajnish singh
Rajnish singh
5 years ago

unable to download plz send it on my email [email protected]

selva
selva
5 years ago

plz send me this code ( [email protected]).I cann’t download.

David
David
5 years ago

I can’t download the file and no captcha verification to pass through

SANA
SANA
5 years ago

CAN IT RUN ON WAMP??

pratik
pratik
5 years ago

i added a new admin name and password in admin table but it says incorrect password everytime.please help

Revathi
Revathi
5 years ago

i cant find login for voters pannel what should i do

Abytrone
Abytrone
4 years ago

please can i get the report for this project?
[email protected]

riyaz
riyaz
4 years ago
Reply to  Abytrone

Even i to need sir . kindly can you please send me report.

Fares Hussein
Fares Hussein
4 years ago

I can’t log in

I got an error “Cannot find voter with the ID ”
while I’m trying to use Your name ” codeprojects ” and Password ” password ”

Could you please help me to solve this problem?

Thank you!!

Fares Hussein
Fares Hussein
4 years ago
Reply to  Fares Hussein

I solved it
Thank you !!

Abhilash Annamreddi
Abhilash Annamreddi
3 years ago
Reply to  Fares Hussein

how

Ayaw Abdul Ganiu
Ayaw Abdul Ganiu
4 years ago

Please i can download the file

Ayaw Abdul Ganiu
Ayaw Abdul Ganiu
4 years ago

Please can i get the downloading URL of the file?

Emmydtec
Emmydtec
4 years ago

I truely appreciate the effort you guys are putting in here, i pray God grant u more grace to do exploit.

Almira Ali
Almira Ali
4 years ago

I tried to put the username and password given but it shows cannot find voter with the ID.
I am using xampp for the sql and sublime.

Akhya Singh
Akhya Singh
4 years ago

I have an error in login of this project can you please help

jerry
jerry
4 years ago

thanks for the script, it really lovely, but i have a little issue trying to login, telling me cant find username.
i replaced the php script in conn.php with

so am having difficulty in loggin in as admin

Derrick Dembe Mkandawire
Derrick Dembe Mkandawire
4 years ago

i really like the system plz send to me the codes

abdulkadir
abdulkadir
4 years ago
Reply to  Fabian Ros

how can i solve this problem
Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in C:\xampp\htdocs\VotingSystem_PHP\votesystem\tcpdf\tcpdf.php on line 17778
TCPDF ERROR: Some data has already been output, can’t send PDF file

deusflight
deusflight
4 years ago

does this work on a 32 bit wamp? because i only have a 32 bit windows 7

iketib
iketib
4 years ago

please i am not able to open the voting system dashboard. i followed the steps but anytime i tried opening http://localhost/votesystem/ and admin side i get page not found message . i need help.

123wert
123wert
4 years ago

please creat voters registration form ..its to hussle to create acc every voters

Jodill James A. Esteban

Thank you very much, i was able to use this in an official election for teacher organization in our school division here in the Philippines. Although i did not use the entire functions but the bones and everything of the system helped me in administration. Well instead of having a traditional method of paper and pencil voting, voters were able to vote even in the comfort of their android phones.

calvary
calvary
4 years ago

Firstly, i got the sign in to start up a session using voter’s id and password and i saw from the txt file READ ME; id is code projects and password is password…

i’m having errors opening the localhost because it’s not signing in; what am i meant to use to sign in??? and also i get this:

Warning: mysqli::mysqli(): (28000/1045): Access denied for user ‘root’@’localhost’ (using password: NO) in /Applications/AMPPS/www/votesystem/includes/conn.php on line 2
Connection failed: Access denied for user ‘root’@’localhost’ (using password: NO)

irrespective of the username and password i used… please help!

Qu3s7
Qu3s7
4 years ago

Can i change the navbar and background color?

codeprojects
Editor
4 years ago
Reply to  Qu3s7

yes

abdulkadir
abdulkadir
4 years ago
Reply to  codeprojects

how to solve this problem sir i Can’t print the result of election
Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in C:\xampp\htdocs\VotingSystem_PHP\votesystem\tcpdf\tcpdf.php on line 17778
TCPDF ERROR: Some data has already been output, can’t send PDF file

Aide Samuel
Aide Samuel
4 years ago

the system is user friendly But how can I have the system used in many computers to enable many voters to vote at the same time?

abdulkadir
abdulkadir
4 years ago

i can’t print the result please help
Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in C:\xampp\htdocs\VotingSystem_PHP\votesystem\tcpdf\tcpdf.php on line 17778
TCPDF ERROR: Some data has already been output, can’t send PDF file

Deepthi k
Deepthi k
4 years ago

no database error even though im using 5.6.3 version plz help

Aakash
Aakash
4 years ago

I always get 404 object not found error whenever I go to localhost/votesystem/admin/ can you help me please.

codeprojects
Editor
4 years ago
Reply to  Aakash

did you put the folder inside htdocs folder

varshita
varshita
4 years ago

Please need report of ths project.
Please need report of ths project.
Please need report of ths project.

codeprojects
Editor
4 years ago
Reply to  varshita

sorry we don’t have it

abdulkadir
abdulkadir
4 years ago
Reply to  codeprojects

i can’t print the result please help
it shows these massages.
Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in C:\xampp\htdocs\VotingSystem_PHP\votesystem\tcpdf\tcpdf.php on line 17778
TCPDF ERROR: Some data has already been output, can’t send PDF file

codeprojects
Editor
4 years ago
Reply to  abdulkadir

Maybe your composer is outdated. Below are the steps to get rid of the error.
Note: For Windows professionals, Only Step2 and Step3 is needed and done.
Step1
Remove the composer:
sudo apt-get remove composer
Step2
Download the composer:
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
Step3
Run composer-setup.php file
php composer-setup.php
Step4
Finally move the composer:
sudo mv composer.phar /usr/local/bin/composer
Your composer should be updated now. To check it run command:
composer
You can remove the downloaded composer by php command
php -r "unlink('composer-setup.php');"

Mohammed Azhar khan
Mohammed Azhar khan
4 years ago

project is not running

lou
lou
4 years ago

i cant access the admin username and password. please tell me how can i access it says “Cannot find voter with the id”

codeprojects
Editor
4 years ago
Reply to  lou

you have to go to “http://localhost/votesystem/admin/” first to login as admin

marcialjigo
marcialjigo
4 years ago
Reply to  codeprojects

IT SAYS OBJECT NOT FOUND WHEN I ACCESS THE http://localhost/votesysteM

codeprojects
Editor
4 years ago
Reply to  marcialjigo

its means you dont have such directory in htdocs folder
please check the folder name of the project correctly and try it again

Samdam
Samdam
4 years ago

How can I max register voters and generate voters ID

Samdam
Samdam
4 years ago

How can I send the voters ID to mail directly after registration. WhatsApp 08032775788 or [email protected]

Vianz
Vianz
4 years ago

I can’t print the voters’ list. PDF is showing nothing. What should I do?

127
0
Would love your thoughts, please comment.x
()
x