-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathleaderboard.php
More file actions
54 lines (48 loc) · 1.5 KB
/
leaderboard.php
File metadata and controls
54 lines (48 loc) · 1.5 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
51
52
53
54
<html>
<head>
<title>War For Trezor</title>
<link rel="icon" href="https://i.imgur.com/hmaZoKf.gif" type="image/gif">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T">
<link rel="stylesheet" href="asset/css/style.css">
<link rel="stylesheet" href="asset/css/table.css">
<link href="http://fonts.googleapis.com/css?family=Montserrat:400,700" rel="stylesheet" type="text/css">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
</head>
<?php include 'leaderboardconnect.php';?>
<body>
<div class="navbar" align="right">
<div align="right">
<a href="afterlogin">Question</a>
<a href="logout">Logout</a>
</div>
</div>
<div class="align500">
<div class="main-wrapper">
<div class="table-wrapper">
<table class="demo-table" >
<thead>
<tr>
<th>Name</th>
<th>Score</th>
</tr>
</thead>
<tbody>
<?php if ($result = $mysqli->query($query)) { ?>
<?php while ($row = $result->fetch_assoc()) { ?>
<?php
$field1name = $row["name"];
$field2name = $row["score"]-1;
?>
<tr>
<td><?php echo '<b>'.$field1name.'</b>';?></td>
<td><?php echo '<b>'.$field2name.'</b>';?></td>
</tr>
<?php } ?>
<?php } ?>
</tbody>
</table>
</div>
</div>
</div>
</body>
</html>