This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user