Gligich.com

Small Efficient and very Customizable Poll, allow you to control all the aspects of it... You can Change the Color scheme, Prevent Duplicate Voting and scadule a Vote Change Automatikly... Used on Gligich Family Site and Crazy SnowBoarder, Crazy SnowBoarding etc...
All you need to run a bPoll is PHP, MySQL and Basic programing knowledge

Installation Instructions
1. Download the poll.rar, UnRar and you should have 3 files
   poll.php   - is the source file that does most of the work...
   blue.jpg   - is the image i used for graphic bar, you can use you own if you wish
   readme.txt - is instructions how to set up poll, identical to these...
   
2. put poll.php in to the folder you are planing to use it in ex. "/home"
   put blue.jpg in to subfolder images of the folder you put poll.php in to 
   ex: "/home/images"

3. copy and paste following code in to the page you calling poll from...
   include "func.php";

include "poll.php"; $pollnum=1; //set to -1 or leave blank to select curent poll $p = new Poll($pollnum, ["www.website.Com"]);

4. Create two tables(answer and poll in the database, you can use following code to create those tables.

CREATE TABLE pollQuestions ( pIndex int(11) NOT NULL auto_increment, question varchar(100) DEFAULT '0' NOT NULL, startDate date, endDate date, PRIMARY KEY (pIndex) ); CREATE TABLE pollAnswers ( aIndex int(11) NOT NULL auto_increment, pIndex int(11) DEFAULT '0' NOT NULL, answer varchar(25) NOT NULL, votes int(11) DEFAULT '0' NOT NULL, value tinyint(4) DEFAULT '0' NOT NULL, PRIMARY KEY (aIndex) );

5. You should have a function dbConnection() that should have following info

function dbConnection() { /*******************************Global Varibles for DB Connection*********************************/ $server = "localhost"; // SQL server name $user = "UserName"; // login to connect to sql server $password = "Password"; // password for SQL connection $base = "DataBaseName"; // database name /*******************************DB Setup and Connection ******************************************/ $ct = mysql_connect($server,$user,$password) or die("Coudn't establish conection... "); $db = mysql_select_db("$base") or die("No Database Connection"); }

6. Populate those tables with corresponding info and you are ready to go... Version History v.0.6.2 - Changed use from Global to $_Request... - Updated to PHP5 v.0.6.1 - Small Bug Fixed related to Poll Pull up... v.0.6 - added two more variables to class: pollQuestionsTable, pollAnswersTable, by default pointing to the table that you created using the script in case, you need to change the location just update those variables - updated the instruction for use of dbConnection() function v.0.5 - poll interface now more easily control through the CSS - simplified installation v.0.4.1 - fixed multiple submittion bug v.0.4 - simplified poll initialization - fixed cookie problem v.0.3.5 - if poll number isn't specified of se to "-1" select the current poll based on current date v.0.3 - created N/A screen - simplified poll initialization - optional parameter WebSite(Not Working) v.0.2.2 - Constructer now takes Second optional parameter URL; poll([pollNum[,domainURL]]) v.0.2.1 - Changed Anonymous Cookies to be saved with domain (IE6 Issue) v.0.2 - Multi Use Dynamic Poll - Poll Section by Specifying Poll Number - Better Cookies Support - Rewritten to be Object Oriented v.0.1 - One Time Static Poll - Saves Results to DB - Saves Cockiest to prevent Multiple votes