Created
October 22, 2019 12:57
-
-
Save parzibyte/4663d47d962e3ebb23f2fdc1675f91b9 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 | |
$sentencia = $base_de_datos->prepare("insert into cortes(idUsuario, fecha, total) values(?,?,?)"); | |
$sentencia->execute([$idUsuario, $fechaCorte, $total]); | |
# Aquí el último ID: | |
$id = $base_de_datos->lastInsertId(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment