1ra Versión

This commit is contained in:
MarcosFlorSalcedo
2026-07-14 18:24:27 -03:00
commit 8ec55e40fc
86 changed files with 15839 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
<?php
include 'conexion.php';
$datos = json_decode(file_get_contents("php://input"), true);
$error = false;
foreach ($datos as $h) {
$dia = $h['dia'];
$ape = $h['ape'];
$cie = $h['cie'];
$sql = "UPDATE horarios SET Hora_Apertura = '$ape', Hora_Cierre = '$cie' WHERE Dia = '$dia'";
if (!mysqli_query($conexion, $sql)) {
$error = true;
}
}
echo $error ? "Error al actualizar algunos horarios" : "Horarios actualizados correctamente";
?>