-
Notifications
You must be signed in to change notification settings - Fork 0
/
uassists.php
52 lines (42 loc) · 1.14 KB
/
uassists.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
51
52
<?php session_start(); ?>
<?php
if($_SESSION['check'] != 1){
session_destroy();
header('Location: index.php');
}
?>
<!DOCTYPE html>
<head>
</head>
<body>
<table style="float:right;" border="1">
<tr>
<th>Name</th>
<th>Display Name</th>
<th>Group</th>
</tr>
<?php
$conf = parse_ini_file("config.ini");
$con = mysqli_connect($conf['host'] , $conf['user'] , $conf['password'] , $conf['database']);
$result = mysqli_query($con , "SELECT * FROM central ORDER BY dname");
while($row = mysqli_fetch_array($result))
{
echo "<tr>";
echo "<th>" . $row['fname'] . "</th>";
echo "<th>" . $row['dname'] . "</th>";
echo "<th>" . $row['grp'] . "</th>";
echo "</tr>";
}
?>
</table>
<h2>Enter details:</h2><br>
<form action="uassistsprocess.php" method="post">
<input type="text" name="dname" placeholder="Enter display name"> <br>
<input type="text" name="player" placeholder="Enter player name"> (use correct spelling) <br>
<input type="text" name="assists" placeholder="Enter number of assists"><br>
<input type="submit" value="submit">
</form>
<br><br>
<a href="home.php"><button id="hbut">Home</button></a>
</body>
</html>