summary refs log tree commit diff stats
path: root/admin/newPoll.php
diff options
context:
space:
mode:
authorStarla Insigna <hatkirby@fourisland.com>2009-08-14 10:19:58 -0400
committerStarla Insigna <hatkirby@fourisland.com>2009-08-14 10:19:58 -0400
commit9491162a4ea231f1cdcd1531dc8d21e95878d0bc (patch)
tree9d04a757ef02496102e4b835ed326f8834e3f4f1 /admin/newPoll.php
parentb5736e3ad3830fa732dcbd1a518ec3dd6ea7b98a (diff)
downloadfourisland-9491162a4ea231f1cdcd1531dc8d21e95878d0bc.tar.gz
fourisland-9491162a4ea231f1cdcd1531dc8d21e95878d0bc.tar.bz2
fourisland-9491162a4ea231f1cdcd1531dc8d21e95878d0bc.zip
Added didpollalready truncation to newPoll
Previously, because the "didpollalready" table that keeps count of who has already voted on this weeks poll was not being truncated when a new poll was created.
Diffstat (limited to 'admin/newPoll.php')
-rw-r--r--admin/newPoll.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/admin/newPoll.php b/admin/newPoll.php index 0373980..c924cd9 100644 --- a/admin/newPoll.php +++ b/admin/newPoll.php
@@ -83,6 +83,9 @@ if (isset($_GET['submit']))
83 83
84 $id = mysql_insert_id(); 84 $id = mysql_insert_id();
85 85
86 $cleardid = "TRUNCATE TABLE didpollalready";
87 $cleardid2 = mysql_query($cleardid);
88
86 $template->add('QUESTIONVALUE', $_POST['question']); 89 $template->add('QUESTIONVALUE', $_POST['question']);
87 $template->add('OPTION1VALUE', $_POST['option1']); 90 $template->add('OPTION1VALUE', $_POST['option1']);
88 $template->add('OPTION2VALUE', $_POST['option2']); 91 $template->add('OPTION2VALUE', $_POST['option2']);