19 lines
No EOL
487 B
PHP
19 lines
No EOL
487 B
PHP
<?php
|
|
require_once "verbindungsaufbau.php"; // wie veranstaltung_loeschen.php
|
|
|
|
|
|
if (isset($_GET["id"]) && is_numeric($_GET["id"])) {
|
|
$id = $_GET["id"];
|
|
if ($stmt = $mysqli->prepare("DELETE FROM orte WHERE ort_id=?")) {
|
|
$stmt->bind_param("i", $id);
|
|
$stmt->execute();
|
|
$stmt->close();
|
|
$mysqli->close();
|
|
header(""Location: ".URL."/veranstaltungen.php"");
|
|
} else {
|
|
echo "Fehler";
|
|
}
|
|
} else {
|
|
echo "unerlaubter Parameter";
|
|
}
|
|
?>
|