-
Notifications
You must be signed in to change notification settings - Fork 0
/
schedule.php
50 lines (49 loc) · 1.24 KB
/
schedule.php
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>
<?php require 'CORE/head.php'; ?>
<head>
<style media="screen">
table, th, tr, td {
margin: auto;
margin-top: 100px;
border: 2px solid white;
}
th{
width: 100px;
text-align: center;
}
tr:nth-child(even) {
background-color: rgb(32, 124, 21);
color: rgb(244, 183, 0);
}
</style>
</head>
<body>
<?php
include 'CORE/navbar.php';
include 'CORE/connectdb.php';
$sql = "SELECT * FROM schedule ";
$result = mysql_query($sql, $conn);
echo '<table>';
echo '<tr>';
echo '<th>GAME</th><th>HOME</th><th>GUESS</th><th>DATE</th><th>TIME</th><th>RESULT</th><th>SCORE-H</th><th>SCORE-G</th>';
echo '</tr>';
$i = 1;
while ($row = mysql_fetch_row($result)) {
echo '<tr>';
//echo "<td>$i</td>";
echo "<td>$row[0]</td>";
echo "<td>$row[1]</td>";
echo "<td>$row[2]</td>";
echo "<td>$row[3]</td>";
echo "<td>$row[4]</td>";
echo "<td>$row[5]</td>";
echo "<td>$row[6]</td>";
echo "<td>$row[7]</td>";
echo '</tr>';
++$i;
}
echo '</table>';
?>
</body>
</html>