Skip to content

Commit

Permalink
Curso de PHP🐘 y MySql🐬 [57.- Subir archivos (fotos🖼️)]
Browse files Browse the repository at this point in the history
Redireccionar a editar despues  insertar registros
video:
https://youtu.be/mP8EA-dPGzI
  • Loading branch information
programadornovato committed Dec 18, 2019
1 parent d95d291 commit 32a5ca9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crear.php
Expand Up @@ -33,7 +33,7 @@
('" . $_REQUEST['nombre'] . "','" . $_REQUEST['precioCompra'] . "','" . $_REQUEST['precioVenta'] . "','" . $_REQUEST['fechaCompra'] . "','" . $_REQUEST['categoria'] . "','" . $_REQUEST['unidadesEnExistencia'] . "','$nombreFoto');";
$resultado = mysqli_query($conexion, $sql);
if ($resultado == true) {
header("Location: tutorialMysql.php");
header("Location: editar.php?id=".mysqli_insert_id($conexion));
} else {
?>
<div class="alert alert-danger alert-dismissible fade show" role="alert">
Expand Down

0 comments on commit 32a5ca9

Please sign in to comment.