Header Ads

Online Polling System using PHP/MySQL - Tutorial 01

There are many ways to script and build 'Online polling system'. Today, we are using PHP/MySQL syntax to create our own polling system. Here, we focus single user can vote at one time only. That means user needs to be signup and then enter the polling system. Then the system will generate a poll ID to the user and use is able to vote. As a real voting, user cannot change his vote after submitting. User can view his data and change profile picture as well. The vote result can be viewed as percentage and in a progress bar. Once user logout, the entire session will close and user needs to log back. When selecting a username for user, there are certain levels to pass like username needs to be have eight characters and unique. All fields in the registration form should be filled to complete the signup. 

This is the process, that how users can vote in this polling system

  • User needs to be created own username (unique, 8 characters) in the registration.
  • Login to the system.
  • Vote (single user can vote at one time only, cannot change the vote after submitting)
  • Change profile picture.
  • View about the user information
  • View the poll result (value, with bar chat)
  • logout
  • After logging out, session will close and user needs to be login back to enter the system.
In next tutorial, we will explain about the PHP/MySQL syntax and database to build you own polling system. 

  • index.php
  • signup.php
  • profile.php
  • polling.php
  • logout.php
  • editpropic.php
  • db.php
  • chartbar.php
  • ajax.php
  • denied.php
  • session.php

No comments

Thank you very much for your ideas!