Voting System using PHP with Source Code

Language

This is a Voting System Project in PHP. The system was created using PHP, HTML, CSS, MySQL Database, and Bootstrap for the design. The system is responsive which means you can manage the system using your mobile phone, laptop, tablet, or desktop computer. This system has 2 types of users which are the Admin and the voters. The Admin user is in charge of managing the list of candidates, organization, voters, and has access to the vote result. The Voters are the student who can vote in any organization and submit their votes. The system is user-friendly and nice user-interface using Bootstrap.

Features

Admin

  • Manage the List of Organization
  • Manage the List of Position
  • Manage the List of Nominees
  • Manage the List of Voters
  • View Results per Organization
  • Print Results per Organization

Voters

  • Vote

How to Run

Requirements

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

Installation/Setup

  1. Open your XAMPP/WAMP's Control Panel and start the "Apache" and "MySQL".
  2. Extract the downloaded source code 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 "voting".
  6. Import the provided SQL file. The file is known as "voting.sql" located inside the extracted source code folder.
  7. Browse the Voting System in a browser. i.e. and http://localhost/voting_system/sandbox for the admin side.

Admin Credentials

Username: admin
Password: admin

You can find the tutorial on how to use the system below:

I hope this Voting System Project Source Code in PHP will help you with what you are looking for and for your future project. Feel free to test and modify the system the way you wanted.

Thanks

Have fun 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

Submitted byZidaxon Tue, 09/19/2017 - 20:52

Hello I tried to login on your sandbox or admin page but the username and password admin does not work. can you help me?

Hi! good day, did you import the database included in the system? You must import the database 'voting' without quotes to phpmyadmin if you are using xampp or wamp.
Check also the connection to the database located in config/db.php. Change the host name, host user, host password depending on your wamp or xampp configuration.
Hope this will help you. Have fun coding.

1. Hi! good day, did you import the database included in the system? You must first import the database voting to phpmyadmin if you are using wamp or xampp.
2. Check database connection located in config/db.php. Change host name, host user and host password depending on your wamp or xampp configuration. Hope this helps. Have fun coding.
Submitted byأمينوو (not verified)on Thu, 02/08/2018 - 06:21

Hi , Thanks bro!!! , but i 'have a small probleme in add_nominees.php (choose the position) plz help me to correct the code [email protected]
Submitted byKennyRedosendo (not verified)on Tue, 03/13/2018 - 09:53

Is it possible for you to add a feature to vote multiple nominees for a certain position? by the way, great system. thank you.
Submitted bydhanunujay (not verified)on Mon, 04/02/2018 - 18:33

what is student id it ask student id in first page please tell me bro
Submitted byLae Lae Htun (not verified)on Thu, 05/03/2018 - 10:51

Hello good morning! I first import the database voting to phpmyadmin using xampp.
and also check database connection located in config/db.php. change host name, host user and host password. but it doesn't work. please assit me. thank you

Submitted byGenray (not verified)on Fri, 05/18/2018 - 16:30

Sir i cannot log in with the student id. I have a error , and the error says Warning: mysqli::mysqli()[function.mysqli-mysqli]: (28000/1045): Access denied for user 'root'@'localhost'(using password:YES) in C:/xampp/htdocs/voting_system/config/db.php on line 8 And the other error says Warning: mysqli::close()[function.mysqli-close]:coudnt fetch mysqli in C:/xampp/htdocs/voting_system/process/login.php on line 14 Please reply as fast as you can. Because i really need this system for now, i try everthing but it just repeating the errors. WHAT SHALL I DO?
Submitted byDylen (not verified)on Mon, 12/17/2018 - 17:44

Pls when i import the database i get an error Any help
Submitted byNelson (not verified)on Mon, 03/25/2019 - 02:22

Can someone help me please. I am a novice. Please help me with tutorials on how to deploy the system from scratch and LAN [email protected]

Add new comment