16 lines
410 B
PHP
16 lines
410 B
PHP
<?php
|
|
ini_set('display_errors', 1);
|
|
ini_set('display_startup_errors', 1);
|
|
error_reporting(E_ALL);
|
|
$ruta = "../";
|
|
require_once "../include/bd_pdo.php";
|
|
global $db;
|
|
|
|
try {
|
|
$db->querySingle("UPDATE usuario SET estado_baja = TRUE WHERE usuario_id = ?", [$_GET['id']]);
|
|
header("Location: ../usuarios.php", true, 307);
|
|
} catch (PDOException $e) {
|
|
header("Location: ../usuarios.php?error=2");
|
|
exit;
|
|
}
|