Initial state
This commit is contained in:
11
action/action_roles_update.php
Normal file
11
action/action_roles_update.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
$ruta = "../";
|
||||
require_once "../include/bd_pdo.php";
|
||||
global $pdo;
|
||||
$sql = "UPDATE rol SET rol_titulo = :nombre WHERE rol_id = :id";
|
||||
$params = array(':nombre' => mb_strtoupper($_POST['mtitulo']), ':id' => $_POST['id']);
|
||||
print_r($_POST);
|
||||
$hecho = query($sql, $params, false);
|
||||
header("Location: ../roles.php", true, 307);
|
||||
exit();
|
||||
?>
|
||||
Reference in New Issue
Block a user