prepare($requete); $result->execute(); $ligne = $result->fetch(PDO::FETCH_OBJ); if($result->rowCount() == 0){ $val =NULL; } else { $val = $ligne->validation; } if(!is_null($val)){ ?> prepare($requete); $resultat->execute(); if($resultat->rowCount() == 1) { $ligne = $resultat->fetch(PDO::FETCH_OBJ); $_SESSION['id'] = $ligne->id; $_SESSION['type'] = $ligne->type; $_SESSION['pseudo'] = $_POST['pseudo']; $_SESSION['mail'] = $ligne->mail; //$variable = NULL; $requete = "UPDATE membre SET npassword=NULL WHERE pseudo='".$_POST['pseudo']."'"; $insert = $connexion->prepare($requete); $insert->execute(); ?> Connexion'; $output.='
Pseudo :  
Password : 
'; echo $output; ?>