-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhome.php
More file actions
50 lines (45 loc) · 1.66 KB
/
Copy pathhome.php
File metadata and controls
50 lines (45 loc) · 1.66 KB
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
44
45
46
47
48
49
50
<!DOCTYPE html>
<html>
<head>
<title>Fantasy WC 2022</title>
<link rel="stylesheet" type="text/css" href="style1.css">
</head>
<body>
<header>
<div class="main">
<div class="logo">
<img src="6.png">
</div>
<ul>
<li class="active"><a href="#">Home</a></li>
<li><a href="Players_Info.php">Players</a></li>
<li><a href="match.php">Fixtures</a></li>
<li><a href="leaderboard.php">Leaderboard</a></li>
<li><a href="logout.php">Log Out</a></li>
</ul>
</div>
<div class="title">
<h1>Fantasy WC 2022</h1>
</div>
<div class="button">
<?php
require_once 'config.php';
session_start();
$uname = $_SESSION['username'];
$email = $_SESSION['email-log'];
$sql = "SELECT `status` FROM `users` WHERE username='$uname'";
$result = $conn->query($sql);
while ($row = $result->fetch_assoc()){
$status = $row['status'];
if ( $status!='submitted'){
echo '<a href="team_name_enter.php" class="btn">Fantasy Team</a>';
}
else if ( $status=='submitted') {
echo '<a href="final_table.php" class="btn">Fantasy Team</a>';
}
}
?>
</div>
</header>
</body>
</html>