exec('TRUNCATE TABLE votes'); $message = 'All votes have been cleared.'; } else { if (!isset($_SESSION['loggedin']) || !$_SESSION['loggedin']) { $error = 'Invalid password'; } } } if (isset($_GET['logout'])) { session_destroy(); header('Location: results.php'); exit; } ?>
No votes yet.
No votes yet.