Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created September 29, 2020 22:46
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/fa8f165e98247d3598c4f003874e6cd7 to your computer and use it in GitHub Desktop.
Save parzibyte/fa8f165e98247d3598c4f003874e6cd7 to your computer and use it in GitHub Desktop.
<?php
$mysqli = include_once "conexion.php";
$nombre = $_POST["nombre"];
$descripcion = $_POST["descripcion"];
$sentencia = $mysqli->prepare("INSERT INTO videojuegos
(nombre, descripcion)
VALUES
(?, ?)");
$sentencia->bind_param("ss", $nombre, $descripcion);
$sentencia->execute();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment