-
-
Save parzibyte/5dbc0cdb0e1f26f884b0c10817c73693 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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