1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
| <?php
session_start();
if (!$_SESSION["login"]) {
header("Location: index.php");
die();
}
include('db_connect.php');
$result=$mysqli->query("SELECT login, pwd, active FROM users2 WHERE login=".$_SESSION['login']);
while($row = $result->fetch_array()){$login=$row['login'];$pwd=$row['pwd'];$active=$row['active'];}
if($active>0){
?>
<!DOCTYPE html>
<html>
<head>
<title>Menu</title>
</head>
<body>
<?php
echo("coucou essai");
?>
</body>
</html>
<?php
}
else
{
include('index.php');
}
?> |
Partager