Update
This commit is contained in:
14
cgi-bin/uebung09/questions-delete.php
Normal file
14
cgi-bin/uebung09/questions-delete.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
require_once(__DIR__ . '/Database.php');
|
||||
|
||||
$id = $_POST['id'];
|
||||
|
||||
$db = new Database();
|
||||
|
||||
$db->deleteQuestion($id);
|
||||
|
||||
|
||||
header("Location: questions-show.php");
|
||||
|
||||
?>
|
Reference in New Issue
Block a user