if (isset($_SESSION['email']) && isset($_SESSION['pwd'])) { include('connexion.php'); $requete = mysql_query("SELECT * FROM profils WHERE email='$Email'") or die(mysql_error()); $data = mysql_fetch_array($requete); if ($data['Password']!=$Pwd || $data['email']!=$Email){ $session = false; }else{ $session = true; } }else { $session = false; } ?>