-
-
Save parzibyte/562db64de916fb4dfa20dcbf5bfb62e2 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 | |
$mysqli = include_once "conexion.php"; | |
$id = $_POST["id"]; | |
$nombre = $_POST["nombre"]; | |
$descripcion = $_POST["descripcion"]; | |
$sentencia = $mysqli->prepare("UPDATE videojuegos SET | |
nombre = ?, | |
descripcion = ? | |
WHERE id = ?"); | |
$sentencia->bind_param("ssi", $nombre, $descripcion, $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