PHP Projects

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


This Post Has 106 Comments

  1. govind Reply

    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

  2. govindraj Reply

    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

  3. anto Reply

    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

  4. VJ Mwiiya Reply

    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.

  5. VJ Mwiiya Reply

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

  6. goutham Reply

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

  7. poojasambath Reply

    plz send me this code([email protected])

  8. José Silva Solís Reply

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

    • José Silva Solís Reply

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

      • Isaac Ajeh Reply

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

  9. José Silva Solís Reply

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

    • Naseeb Bajracharya Reply

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

      • abdulkadir Reply

        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

  10. Teklehaimanot Reply

    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

  11. perry Reply

    how can the student view all the poll results?

  12. perry Reply

    how can the voters view all the poll results?

  13. senta Reply

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

  14. noah Reply

    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?

  15. Tasleem Reply

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

    • Fabian Ros Reply

      you have to create a database naming “votesystem” and import the SQL file “votesystem.sql”

      • Abhilash Annamreddi Reply

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

  16. Roblox Reply

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

  17. Guest Reply

    Incorrect p

  18. zana Reply

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

  19. joy Reply

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

  20. Augustus Reply

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

  21. Rajnish singh Reply

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

    • Fabian Ros Reply

      you have to pass through human verification. Click on I’m not robot, then only you can download the files

  22. selva Reply

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

    • Fabian Ros Reply

      you have to pass through captcha verification. Click on I’m not robot then only you can download the files

  23. David Reply

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

    • Fabian Ros Reply

      captcha verification is right above the Green download button
      make sure you have turned off your adblocker because it might also block

  24. SANA Reply

    CAN IT RUN ON WAMP??

  25. pratik Reply

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

  26. Revathi Reply

    i cant find login for voters pannel what should i do

  27. Abytrone Reply

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

  28. Fares Hussein Reply

    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!!

  29. Ayaw Abdul Ganiu Reply

    Please i can download the file

    • Fabian Ros Reply

      look carefully, there’s a GREEN Download Button below h2 text “Download Voting System in PHP . . “

  30. Ayaw Abdul Ganiu Reply

    Please can i get the downloading URL of the file?

    • Fabian Ros Reply

      look carefully, there’s a GREEN Download Button below h2 text “Download Voting System in PHP . . “

    • Emmydtec Reply

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

  31. Almira Ali Reply

    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.

    • Fabian Ros Reply

      we have provided Admin Login Details only! that’s not voter’s username and password.
      simply login as admin and check Voter’s ID and password in order to log in as Voter

  32. Akhya Singh Reply

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

  33. jerry Reply

    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

  34. Derrick Dembe Mkandawire Reply

    i really like the system plz send to me the codes

    • Fabian Ros Reply

      source code is available there
      you can download it

      • abdulkadir Reply

        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

  35. deusflight Reply

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

  36. iketib Reply

    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.

  37. 123wert Reply

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

  38. Jodill James A. Esteban Reply

    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.

  39. calvary Reply

    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!

  40. Qu3s7 Reply

    Can i change the navbar and background color?

    • codeprojects Reply

      yes

      • abdulkadir Reply

        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

  41. Aide Samuel Reply

    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?

  42. abdulkadir Reply

    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

  43. Deepthi k Reply

    no database error even though im using 5.6.3 version plz help

  44. Aakash Reply

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

  45. varshita Reply

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

    • codeprojects Reply

      sorry we don’t have it

      • abdulkadir Reply

        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 Reply

          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');"

  46. Mohammed Azhar khan Reply

    project is not running

  47. lou Reply

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

    • codeprojects Reply

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

      • marcialjigo Reply

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

        • codeprojects Reply

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

  48. Samdam Reply

    How can I max register voters and generate voters ID

  49. Samdam Reply

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

  50. Vianz Reply

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

  51. dharani Reply

    how to go to voters login pls help me

  52. Prince Omarr Reply

    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
     
     
    I have gone through all the comment section and it looks this is a big issue for many. Please if you can do a video on how to solve this issue, it will be very helpful. Thanks so much for the project and your time

  53. Sulemana Reply

    Please can i host this project online? I tried to host it online and get the error “Connection failed: Access denied for user ‘root’@’localhost’ (using password: NO) “

  54. Robert Reply

    How can i add more admin users ? Now i restrictet to one ? Why ? Please tell me hoe to disabled this restriction.

  55. santosh Reply

    Warning: mysqli::__construct(): (HY000/1045): Access denied for user ‘root’@’localhost’ (using password: NO) in C:\xampp\htdocs\votesystem\votesystem\includes\conn.php on line 2
    Connection failed: Access denied for user ‘root’@’localhost’ (using password: NO)
    i got this error how to resolve this

  56. Blair Reply

    How do i get to voters page to login
    Its giving hard time to fine thank

Leave a Reply

Your email address will not be published. Required fields are marked *