-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathresult.php
More file actions
120 lines (103 loc) · 2.7 KB
/
Copy pathresult.php
File metadata and controls
120 lines (103 loc) · 2.7 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<!-- Result page for Admin -->
<?php
include_once 'assets/header.php';
include_once 'includes/dbh.inc.php';
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Architects+Daughter&display=swap" rel="stylesheet">
<title>Administration</title>
</head>
<style>
.header{
min-height: 65px;
background-color: #f8ceec;
background-image: linear-gradient(315deg, #f8ceec 0%, #a88beb 74%);
}
body {
margin: 0;
padding: 0;
justify-content: center;
align-items: center;
height: 100vh;
}
p1 {
position: relative;
font-family: sans-serif;
text-transform: uppercase;
font-size: 2em;
letter-spacing: 4px;
overflow: hidden;
background: linear-gradient(90deg, #000, #fff, #000);
background-repeat: repeat;
background-size: 80%;
animation: animate 1.5s linear 1;
-webkit-background-clip: text;
-webkit-text-fill-color: rgba(255, 255, 255, 0);
display: flex;
justify-content: center;
align-items: center;
padding-top: 20px;
}
@keyframes animate {
0% {
background-position: -500%;
}
100% {
background-position: 500%;
}
}
.button{
display: flex;
justify-content: center;
align-items: center;
padding-top: 100px;
font-family: 'Architects Daughter', cursive;
}
.button1{
display: flex;
justify-content: space-around;
align-items: center;
padding-top: 100px;
font-family: 'Architects Daughter', cursive;
}
</style>
<body>
<header class="header">
<p1>Results</p1><br>
<!-- Fetching Data for Table -->
<?php
$sql = mysqli_query($conn,"SELECT * FROM auction_details;");
echo '<table class="table table-dark">
<thead class="thead-dark">
<tr>
<th scope="col">InGameName</th>
<th scope="col">Team Name</th>
<th scope="col">Sold At</th>
</tr>
</thead>
<tbody>';
if (mysqli_num_rows($sql) > 0 ){
while ($row = mysqli_fetch_assoc($sql)) {
// echo "<tr><td>".$row["userIGN"]."</td><td>".$row["teamName"]." ".$row["finalPrice"]."</td></tr>";
echo '<tr>
<td>'.$row["userIGN"].'</td>
<td>'.$row["teamName"].'</td>
<td>'.$row["finalPrice"].'</td>
</tr>';
}
echo ' </tbody>
</table>';
}
?>
</header>
</body>
</html>
<?php
include_once 'assets/footer.php';
?>