';
$error=$_GET['error'];
if($error=="username")
{
echo'Error : Your username is invalid';
}
if($error=="pass")
{
echo'error : Your password is invalid';
}
if($error=="connection")
{
echo"error : Your password don't match with your username";
}
echo'';
}
?>
';
}
else
{
require_once('config.php');
$page_name='Panneau Utilisateur';
include_once('top.php');
?>
query($sql);
$user_ranking = $stmt->fetch(PDO::FETCH_ASSOC);
echo "
";
echo("Votre rang est : ".$user_ranking['user_rank'].". ");
$user_rank="$user_ranking[user_rank]";
if($user_rank==1){
echo("Vous êtes administrateur.");
}
?>