Creating a Voting Poll With PHP And MySQL Part 1/2
(Page 1 of 5 )
Voting polls provide a level of interactivity in a sense that visitors can express their opinions about particular topics and areas of interest, simply by choosing their response to a question and clicking on a vote button. In this series of two articles, Mitchell's going to show us how to create an interactive voting poll system. It will contain an admin page and a page to vote and view results.Besides regular content updates and moderated forums, voting polls are one of the best ways to attract more traffic to your site. Voting polls provide a level of interactivity in a sense that visitors can express their opinions about particular topics and areas of interest, simply by choosing their response to a question and clicking on a vote button.
In this two-part article I'm going to show you how to create a PHP driven voting system. The voting questions and answers will be stored in a MySQL database and I will show you how to develop a web-based administration section to add and delete new poll questions.
To test the code samples in this article, you should have a Windows NT, 2000, Linux or Unix server running the latest version of
PHP and
Apache. This server should also have
MySQL installed and configured. You should be proficient with PHP and MySQL also.
In this article I'll describe how to create the administration page to add and delete polls. In the next and final article, I will describe how to allow users to vote, add those votes to the database, display the results and stop visitors from voting more than once.
Next: Creating the database >>
More MySQL Articles
More By Mitchell Harper