-
Notifications
You must be signed in to change notification settings - Fork 0
/
createFantasy.php
41 lines (35 loc) · 949 Bytes
/
createFantasy.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
<?php
include('includes/header.php');
//$query = "SELECT a.*, b.* FROM Player a INNER JOIN PlayerStat b ON b.playerStatID = a.playerID INNER JOIN Position c ON c.positionID = b.positionID";
$query = "SELECT * FROM Users";
$result = $mysqli->query($query);
$array = r2a($result);
?>
<table id="table" class="display table-striped table-inverse table-hover" cellspacing="0" width="100%">
<thead>
<tr>
<th>Name</th>
<th>Position</th>
<th>Office</th>
</tr>
</thead>
<tbody>
<?php foreach($array as $a){ ?>
<tr>
<th><?= $a['fName'].$a['lName'] ?></th>
<th><?= $a['password'] ?></th>
<th><?= $a['username'] ?></th>
</tr>
<?php } ?>
</tbody>
</table>
<?php
include('includes/footer.php');
?>
<script>
$(document).ready(function() {
$(document).ready(function(){
$('#table').DataTable();
});
} );
</script>