php require_once __DIR__ . '_auth.php'; $id = isset($_GET['id']) (int)$_GET['id'] 0; $stmt = $conn-prepare(DELETE FROM setores WHERE id=); $stmt-bind_param(i, $id); $stmt-execute(); header('Location ' . BASE_URL . 'adminpainel.php'); exit;