-
Notifications
You must be signed in to change notification settings - Fork 0
/
coaches.php
45 lines (39 loc) · 2.25 KB
/
coaches.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
<?php include "includes/head.php"; ?>
<?php
$getData = $conn->query("SELECT * FROM users WHERE category = 'ecoach' ORDER BY id DESC");
?>
<!-- Start info box -->
<div class="row mt-5">
<div class="col-12">
<div class="widget">
<div class="widget-content" style="padding:10px;">
<div class="table-responsive">
<table id="datatables-1" class="table table-striped table-bordered" cellspacing="0" width="100%">
<thead>
<tr>
<th>Email Address</th>
<th>Phone</th>
<th>Firstname</th>
<th>Lastname</th>
<th>...</th>
</tr>
</thead>
<tbody>
<?php while($row = $getData->fetch(PDO::FETCH_OBJ)){ ?>
<tr>
<td><?php echo $row->email; ?></td>
<td><?php echo $row->phone; ?></td>
<td><?php echo $row->firstname; ?></td>
<td><?php echo $row->lastname; ?></td>
<td><a href="user.php?id=<?php echo $row->id; ?>&category=coach" class="btn btn-md btn-success">Manage</a></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<!-- End of info box -->
<?php include "includes/foot.php"; ?>