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"; }