Actualización de permisos
Some checks failed
Deploy Pruebas / deploy (push) Has been cancelled

This commit is contained in:
AlexLara
2024-09-03 12:55:00 -06:00
parent f9be03cedd
commit d698dd83f5

View File

@@ -3,6 +3,8 @@ $ruta = "../";
require_once "../include/bd_pdo.php"; require_once "../include/bd_pdo.php";
global $db, $pdo; global $db, $pdo;
print_r($_POST);
try { try {
// Begin transaction // Begin transaction
$pdo->beginTransaction(); $pdo->beginTransaction();
@@ -50,10 +52,9 @@ try {
'permiso_tipo' => $actual[2], 'permiso_tipo' => $actual[2],
]); ]);
} }
// Commit the transaction // Commit the transaction
$db->commit(); $pdo->commit();
// Redirect to permisos.php // Redirect to permisos.php
header("Location: ../permisos.php"); header("Location: ../permisos.php");
exit(); exit();