-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlevel52.php
More file actions
35 lines (29 loc) · 755 Bytes
/
level52.php
File metadata and controls
35 lines (29 loc) · 755 Bytes
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
<?php
include "session.php";
$db_host = "localhost";
$db_username = "host";
$db_pass = "";
$db_name = "event";
$con = mysqli_connect("$db_host","$db_username","$db_pass","$db_name");
if(!$_SESSION['user']){
header('Location:index.php');
}
if(isset($_SESSION['user'])){
$aid=$_SESSION['user'];
$ddf = mysqli_query($con, "SELECT email,name,qstn FROM entry WHERE id='$aid' ");
{
while($r = mysqli_fetch_array($ddf)){
$aemail = $r['email'];
$qstn = $r['qstn'];
$aname = $r['name'];
if($qstn!="level8"){header('Location: '.$qstn.'.php');}
}
}}
?><html>
<body>
haha, you have completed all the question!!!<br><Br>
<form method="post" action="session.php">
<input type="submit" name="logout" value="Logout"/>
</form>
</body>
</html>