0)) exit; ?>
Poll management | ||||||||||
Bent u zeker dat u deze poll wilt archiveren? Vraag: {$poll->vraag} ";exit; } } elseif ($_GET['x'] == d) { if ($_POST['dell']) { mysql_query("DELETE FROM `poll` WHERE `id`='{$_POST['id']}'"); echo "Poll verwijderd."; } else { $dbres = mysql_query("SELECT * FROM `poll` WHERE `id`='{$_GET['d']}'"); $poll = mysql_fetch_object($dbres); print "";exit; } } elseif ($_POST['new']) { $time = time(); mysql_query("INSERT INTO `poll`(`vraag`,`actief`,`datum`,`keuze1`,`keuze2`,`keuze3`,`keuze4`,`keuze5`,`keuze6`,`keuze7`,`keuze8`) values('{$_POST['vraag']}','1','{$time}','{$_POST['keuze1']}','{$_POST['keuze2']}','{$_POST['keuze3']}','{$_POST['keuze4']}','{$_POST['keuze5']}','{$_POST['keuze6']}','{$_POST['keuze7']}','{$_POST['keuze8']}')") or die(mysql_error()); echo "Poll toegevoegd."; } print ""; print << ID |
Vraag |
Actief |
Archief |
Delete |
$gegeven->id |
$gegeven->vraag |
$gegeven->actief |
id>[x] |
id>[x] |
|