Files
500/read/delete.php
2019-03-30 23:03:43 -04:00

12 lines
231 B
PHP

<?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");
}
?>