-
-
Save parzibyte/6055d76ba55c1beb7334d8cddfbfad6c 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 | |
$entrada = $_POST["entrada"]; | |
$salida = $_POST["salida"]; | |
$idUsuario = $_POST["id_usuario"]; | |
/*Aquí guardamos la entrada y salida en la base de datos como varchar de longitud 5 | |
*/ | |
$bd = include_once "bd.php"; | |
$sentencia = $bd->prepare("INSERT INTO horarios(id_usuario, entrada, salida) VALUES(?, ?, ?)"); | |
$sentencia->execute([$idUsuario, $entrada, $salida]); | |
echo "Registrado correctamente"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment