-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpitdata.php
More file actions
46 lines (41 loc) · 1.32 KB
/
pitdata.php
File metadata and controls
46 lines (41 loc) · 1.32 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
<?php include 'components/authentication.php' ?>
<?php include 'components/session-check.php' ?>
<?php include 'controllers/base/head.php' ?>
<?php include 'controllers/navigation/first-navigation.php' ?>
<?php
if($_GET["request"]=="profile-update" && $_GET["status"]=="success"){
$dialogue="Your profile update was successful! ";
}
else if($_GET["request"]=="profile-update" && $_GET["status"]=="unsuccess"){
$dialogue="Your profile update was not at all successful! ";
}
else if($_GET["request"]=="login" && $_GET["status"]=="success"){
$dialogue="Welcome back again! ";
}
?>
<?php include '/var/www/_database/database.php' ?>
<?php echo '<link rel="stylesheet" type="text/css" href="style.css">';?>
<center><h1 class="rainbowize">Pit Summary</h1><center>
<?php
$result = mysqli_query($database,"SELECT TeamNum, CapacityofBalls FROM 2017_game.pit GROUP BY TeamNum ORDER BY TeamNum");
echo "<table border='1'>";
$i = 0;
while($row = $result->fetch_assoc())
{
if ($i == 0) {
$i++;
echo "<tr>";
foreach ($row as $key => $value) {
echo "<th>" . $key . "</th>";
}
echo "</tr>";
}
echo "<tr>";
foreach ($row as $value) {
echo "<td>" . $value . "</td>";
}
echo "</tr>";
}
echo "</table>";
mysqli_close($database);
?>