Skip to content

Instantly share code, notes, and snippets.

Created Oct 14, 2019
What would you like to do?
if (!isset($_GET["id"])) {
$id = $_GET["id"];
include_once "database.php";
$statement = $database->prepare("DELETE FROM person WHERE id = ?;");
$result = $statement->execute([$id]);
if ($result === true) {
echo "Deleted";
} else {
echo "Something went wrong";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment