Voting System using PHP/MySQLi with Source Code
The Voting System web application using PHP/MySQLi is a project that serves as the automated voting system of an organization or school. This system works like the common manual system of election voting system whereas this system must be populated by the list of the positions, candidates, and voters. This system can help a certain organization or school to minimize the voting time duration because aside they can provide the voters an online platform to vote, the system will automatically count the votes for each candidate. The system has 2 sides of the user interface which are the administrator and voters side. The admin user is in charge to populate and manage the data of the system and the voter side which is where the voters will choose their candidate and submit their votes.
Features:
- Vote preview
- Multiple votes
- Result tally via Horizontal Barchart
- Print voting results in PDF
- Changeable order of positions to show in the ballot
- CRUD voters
- CRUD candidates
- CRUD positions
Plugins
- AdminLTE
- TCPDF
Installation
- Download the source code using the Download button below.
- Extract the downloaded file to your localhost folder ex. htdocs for XAMMP.
- Import the included .sql file located in db folder which is the database of the system. If you have no idea how to import, please refer to my tutorial on How import .sql file to restore MySQL database.
- After a successful import, open the extracted folder and open conn.php in both the includes folder and in the admin/includes folder. Edit the database name in the connection depending on the name of the database you created in importing the included .sql file.
How to Use
- First login as administrator by adding /admin/ in the URL. You should be redirected to the admin login page.
- Add the important data such as positions, candidates, and voters.
- Change the title of the election by clicking the Election Title menu.
- Rearrange the order of positions depending on the desired order to show in the ballot using the Ballot Position menu.
Use this admin credential:
Username: nurhodelta
Password: password
And for the voter's username, use the auto-generated voter's id.
That's it. If you find any bugs or errors or you have any suggestions, comments, or reactions, feel free to comment below or message me.
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.
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
hi.would you be hable to send
Excellent Work
TCPDF ERROR:can't send PDF file
Print Button
Log in issue
HOW DO I ADD PLUGINS
login failed
Login failed
Appreciation
Deprecation and Warning Errors When Printing Votes
Deprecation and Warning Errors When Printing Votes
Deprecation and Warning Errors When Printing Votes
Please i need to contact you…
Importing voters' data
Great project btw can I get…
COMPLAIN
Add new comment
- Add new comment
- 29155 views