Voting System using PHP

Submitted by: 
Language: 
Visitors have accessed this post 3988 times.

Features:

  • Vote preview
  • Multiple votes
  • Result tally via Horizontal Barchart
  • Print voting result in PDF
  • Changeable order of positions to show in ballot
  • CRUD voters
  • CRUD candidates
  • CRUD positions

Plugins

  • AdminLTE
  • TCPDF

Installation

1. Download the source code using the Download button below.

2. Extract the downloaded file to your localhost folder ex. htdocs for XAMMP.

3. Import the included .sql file located in db folder which is the database of the system. If you have no idea on how to import, please refer to my tutorial on How import .sql file to restore MySQL database.

4. After a successful import, open the extracted folder and open conn.php in both the includes folder and in admin/includes folder. Edit the database name in the connection depending on the name of database you created in importing the included .sql file.

How to Use

1. First login as administrator by adding /admin/ in the url. You should be redirected to admin login page.

Use this admin credential:

Username: nurhodelta
Password: password

2. Add the important data such as positions, candidates and voters.

3. Change the title of the election by clicking Election Title menu.

4. Rearrange the order of positions depending on the desired order to show in the ballot using Ballot Position menu.

That's it. Get the voters id of the added voters to be used to login to vote in the system. Voters id is 15 characters long.

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

hey Neo saw your system is good but i fail to login into voters because i fails to identify votersid.
need your help

hi.would you be hable to send me the report f this project plz to my [email protected]

This is the Best eVoting Script I have ever seen. Kudos.
I Love it so much

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • You may insert videos with [video:URL]
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <th> <img> <h1> <h2> <h3> <iframe> [video]
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <asp>, <c>, <cpp>, <csharp>, <css>, <html4strict>, <java>, <javascript>, <mysql>, <php>, <python>, <sql>, <vb>, <vbnet>. The supported tag styles are: <foo>, [foo].
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.