Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created September 30, 2020 02:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/5dbc0cdb0e1f26f884b0c10817c73693 to your computer and use it in GitHub Desktop.
Save parzibyte/5dbc0cdb0e1f26f884b0c10817c73693 to your computer and use it in GitHub Desktop.
<?php
if (!isset($_GET["id"])) {
exit("No hay id");
}
$mysqli = include_once "conexion.php";
$id = $_GET["id"];
$sentencia = $mysqli->prepare("DELETE FROM videojuegos WHERE id = ?");
$sentencia->bind_param("i", $id);
$sentencia->execute();
header("Location: listar.php");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment