From 4615855fb8d8197348ca99fc8f0229b5b023c50d Mon Sep 17 00:00:00 2001 From: Findus23 Date: Fri, 27 Dec 2013 10:23:08 +0100 Subject: [PATCH] =?UTF-8?q?Orte=20k=C3=B6nnen=20gel=C3=B6scht=20werden?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ort_loeschen.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ort_loeschen.php b/ort_loeschen.php index 0deef00..908070a 100644 --- a/ort_loeschen.php +++ b/ort_loeschen.php @@ -4,12 +4,12 @@ require_once "verbindungsaufbau.php"; if (isset($_GET["id"]) && is_numeric($_GET["id"])) { $id = $_GET["id"]; - if ($stmt = $mysqli->prepare("DELETE FROM veranstaltungen WHERE veranstaltungs_id=?")) { + if ($stmt = $mysqli->prepare("DELETE FROM orte WHERE ort_id=?")) { $stmt->bind_param("i", $id); $stmt->execute(); $stmt->close(); $mysqli->close(); - header("Location: http://localhost/mysql/veranstaltung/veranstaltungen.php"); + header("Location: http://localhost/mysql/veranstaltung/orte.php"); } else { echo "Fehler"; }