Reset IP's
";
if(isset($_GET['a']) && $_GET['a'] == "wijzigen") {
if(isset($_POST['submit']) && !empty($_POST['antwoord']) && !empty($_POST['id'])) {
mysql_query("UPDATE poll_ant SET antwoord = '".mysql_real_escape_string(htmlspecialchars($_POST['antwoord']))."' WHERE id='".mysql_real_escape_string($_POST['id'])."'");
if(mysql_error() == "") {
echo "Hij is gewijzigd.
Terug naar admin";
}else{
echo "Er is iets fout gegaan.";
}
}else{
if(isset($_GET['id'])) {
$sql = mysql_query("SELECT * FROM poll_ant WHERE id='".mysql_real_escape_string($_GET['id'])."'");
$row = mysql_fetch_assoc($sql);
?>