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
502 B
PHP
Raw Normal View History

2013-12-27 10:20:00 +01:00
<?php
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=?")) {
$stmt->bind_param("i", $id);
$stmt->execute();
$stmt->close();
$mysqli->close();
header("Location: http://localhost/mysql/veranstaltung/veranstaltungen.php");
} else {
echo "Fehler";
}
} else {
echo "unerlaubter Parameter";
}
?>