prepare($sql); $stmt->bindValue(':id', $id, PDO::PARAM_INT); $result = $stmt->execute(); if($result) { $_SESSION["innfoError"] = "Usunięto dział"; header("Location: dictionaries.php"); exit(); } else { $_SESSION["innfoError"] = "Błąd usuwania działu"; header("Location: dictionaries.php"); exit(); } } ?>