Posts Tagged ‘POLL’

Creating a Web Poll with PHP

September 2, 2010  |  PHP  |  ,  |  Comments Off

Polls are nearly ubiquitous on the web today, and there are plenty of services that will provide a drop-in poll for you. But what if you want to write one yourself? This tutorial will take you through the steps to create a simple PHP-based poll, including database setup, vote processing, and displaying the poll. Step 1: Plan & Create the Database In order to store poll results, we’re going to store three pieces of information: A question identifier An answer identifier The number of votes a question/answer pair has gotten For this tutorial, we’ll be using PDO and SQLite. If you’re working with SQLite3, you...

Read More