Bonjour,
J´ai chti probleme avec mon script qui verifier l´acces a une page en fait quand c bon il m´affiche la page mais quand c pas bon il m´affiche une page blanche
voici le the script en aléger pour pas vous embrouiller
<?php
$passentrer = md5($_POST[´passe´]);
session_start ();
$_SESSION[´pseudos´] = htmlentities ($_POST[´pseudos´]);
$_SESSION[´passe´] = $passentrer;
include("../divers/mysqlconnection_zm_news.php");
$pseudos = htmlspecialchars ($_SESSION[´pseudos´]);
$passe = htmlspecialchars ($_SESSION[´passe´]);
$reponse = mysql_query("SELECT * FROM membres WHERE pseudos=´$pseudos´") ;
while ($recuperation = mysql_fetch_array($reponse) )
{
$pseudosmysql = htmlspecialchars ($recuperation[´pseudos´]) ;
$passemysql = htmlspecialchars ($recuperation[´passe´]) ;
$email = htmlspecialchars ($recuperation[´email´]);
$ville = htmlspecialchars ($recuperation[´ville´]);
$avatar = $recuperation[´avatar´];
}
if (isset($pseudosmysql) AND isset($passemysql))
{
if ($pseudos == "$pseudosmysql" AND $passe == "$passemysql")
{
echo "
CODE HTML A AFFCIHER SI ON A LES DROITS
";
}
}
elseif
{
$pseudosmysql = "";
$passemysql = "";
echo "
CODE HTML DE LA PAGE A AFFICHER SI PAS LE DROIT D´ACCES
";
};
include("../divers/mysqldeconection");
?>