prepare($sql); $stmt->bindValue(':id', $_SESSION['user_id'], PDO::PARAM_INT); $stmt->execute(); $uzytkownicy = $stmt->fetchAll(PDO::FETCH_ASSOC); //print_r($uzytkownicy); if($_SERVER['REQUEST_METHOD'] == 'POST' && isset($_POST['delAdmin'])) { $user = $_POST['user']; $sql = "DELETE FROM admini WHERE kto = :kto"; $stmt = $pdo->prepare($sql); $stmt->bindValue(':kto', $user, PDO::PARAM_INT); $stmt->execute(); $_SESSION['innfoError'] = "Usunięto admina"; header("Location: dictionaries.php"); exit(); } ?>