prepare($sql); $query->bindValue(':login', $login, PDO::PARAM_STR); $query->bindValue(':password', $password, PDO::PARAM_STR); $query->bindValue(':firstname', $firstname, PDO::PARAM_STR); $query->bindValue(':lastname', $lastname, PDO::PARAM_STR); $query->bindValue(':description', $description, PDO::PARAM_STR); $query->bindValue(':role', $role, PDO::PARAM_INT); $query->bindValue(':enabled', 1, PDO::PARAM_INT); $query->execute(); $_SESSION['message'] = "Utilisateur ajouté avec succès !"; header('Location: index.php'); } } require_once('close.php'); $vue = "add.twig"; $donnees = array(); require_once('modele/twig.php');