Daily Poll

Printer-friendly versionPDF version
Your rating: None Average: 4.7 (3 votes)

This open source polling system allows you to make a poll daily for your website. It sets a cookie to prevent recurrent voting. It has a administration panel to add or delete poll. This polling scripts uses mysql database.

 

Installation:

  1. Open settings.php with notepad and put your database hostname, username,
    password and database name correctly.
  2. Set your admin password in the settings.php file. You shall be able to set timezone later from the admin panel.
  3. Upload the all the files in to your server.
  4. Log in to your database with phpmyadmin and execute this query

    CREATE TABLE `daily_poll` (
    `id` int(11) NOT NULL auto_increment,
    `date` date NOT NULL,
    `question` text collate latin1_general_ci NOT NULL,
    `y` int(5) NOT NULL default '0',
    `n` int(5) NOT NULL default '0',
    `c` int(5) NOT NULL default '0',
    PRIMARY KEY (`id`),
    UNIQUE KEY `date` (`date`)
    ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=1 ;

Now open the browser go to the poll admin panel, login with the password you entered in the settings.php. Enjoy the system!

Source Files: