initial commit
This commit is contained in:
12
read/delete.php
Normal file
12
read/delete.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
if($_GET["del"]){
|
||||
$postID = $_GET["post"];
|
||||
$stmt = $conn->prepare("DELETE FROM posts WHERE id = :id");
|
||||
$stmt->bindParam(":id", $postID);
|
||||
$stmt->execute();
|
||||
|
||||
header("Location: /500/read");
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user