prepare("SELECT * FROM utilisateur WHERE login = ?"); $stmt->execute([$login]); $user = $stmt->fetch(PDO::FETCH_ASSOC); if ($user && password_verify($password, $user['password'])) { $_SESSION['admin'] = $user['login']; header('Location: tabledebord.php'); exit; } else { $message = "Identifiants incorrects"; } } ?> Connexion Administrateur

Connexion Administrateur