1
0
Fork 0
This repository has been archived on 2024-06-28. You can view files and clone it, but cannot push or open issues or pull requests.
veranstaltung/ort_loeschen.php

19 lines
487 B
PHP
Raw Permalink Normal View History

2013-12-27 10:20:00 +01:00
<?php
2014-01-10 17:02:12 +01:00
require_once "verbindungsaufbau.php"; // wie veranstaltung_loeschen.php
2013-12-27 10:20:00 +01:00
if (isset($_GET["id"]) && is_numeric($_GET["id"])) {
$id = $_GET["id"];
2013-12-27 10:23:08 +01:00
if ($stmt = $mysqli->prepare("DELETE FROM orte WHERE ort_id=?")) {
2013-12-27 10:20:00 +01:00
$stmt->bind_param("i", $id);
$stmt->execute();
$stmt->close();
$mysqli->close();
2013-12-31 15:30:15 +01:00
header(""Location: ".URL."/veranstaltungen.php"");
2013-12-27 10:20:00 +01:00
} else {
echo "Fehler";
}
} else {
echo "unerlaubter Parameter";
}
?>