Skip to content

Instantly share code, notes, and snippets.

@vicentematus
Created December 23, 2021 05:14
Show Gist options
  • Save vicentematus/fee859e697716460d2f2d21c833188cc to your computer and use it in GitHub Desktop.
Save vicentematus/fee859e697716460d2f2d21c833188cc to your computer and use it in GitHub Desktop.
<?php
include_once("../../conexion_bd/conexion.php");
$errores = "";
if (isset($_POST["submit"])) {
$tema = $_POST["tema"];
$descripcion = $_POST["reu_descripcion"];
$reu_fecha = $_POST["reu_fecha"];
$hora_inicio = $_POST["hora_inicio"];
$hora_termino = $_POST['hora_termino'];
$estado = $_POST["estado"];
$codigo_acta = $_POST["codigo_acta"];
$query = "update acta set tema = '$tema' , fecha = '$reu_fecha' , hora_inicio = '$hora_inicio' , hora_termino = '$hora_termino' , estado = '$estado' , descripcion = '$descripcion' where codigo_acta = '$codigo_acta'";
mysqli_query($conn, $query);
header("location:./exito-acta.php?codigo_acta=$codigo_acta");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment