prepare($sql); $stmt->bindValue(':id', $id, PDO::PARAM_INT); $stmt->execute(); $_SESSION["innfoError"] = "Użytkownik został usunięty"; header("Location: activateWorker.php"); exit(); } else { $_SESSION["innfoError"] = "Niepoprawne dane"; header("Location: activateWorker.php"); exit(); }