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