From 9491162a4ea231f1cdcd1531dc8d21e95878d0bc Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Fri, 14 Aug 2009 10:19:58 -0400 Subject: 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. --- admin/newPoll.php | 3 +++ 1 file changed, 3 insertions(+) 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'])) $id = mysql_insert_id(); + $cleardid = "TRUNCATE TABLE didpollalready"; + $cleardid2 = mysql_query($cleardid); + $template->add('QUESTIONVALUE', $_POST['question']); $template->add('OPTION1VALUE', $_POST['option1']); $template->add('OPTION2VALUE', $_POST['option2']); -- cgit 1.4.1