-
Notifications
You must be signed in to change notification settings - Fork 27
/
manage_member.php
51 lines (41 loc) · 1.17 KB
/
manage_member.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
<div class="container">
<form class="form-group mt-3" method="post" action="home.php?info=member_search">
<h3 class="lead">SEARCH MEMBER</h3>
<input type="text" name="name" class="form-control" placeholder="ENTER MEMBER NAME OR MEMBER ID">
</form>
<div class="container">
<table class="table table-bordered table-hover">
<tr>
<th>MEMBER ID</th>
<th>MEMBER NAME</th>
<th>AGE</th>
<th>DOB</th>
<th>PACKAGE</th>
<th>MOBILE NO</th>
<th>PAYMENT AREA ID </th>
<th>TRAINER ID</th>
</tr>
<?php
require('db.php');
$all="SELECT * FROM member";
$all_query=mysqli_query($conn,$all);
if (mysqli_num_rows($all_query) > 0) {
while($row = mysqli_fetch_assoc($all_query)) {
echo "<tr>";
echo "<td>".$row['mem_id']."</td>";
echo "<td>".$row['name']."</td>";
echo "<td>".$row['age']."</td>";
echo "<td>".$row['dob']."</td>";
echo "<td>".$row['package']."</td>";
echo "<td>".$row['mobileno']."</td>";
echo "<td>".$row['pay_id']."</td>";
echo "<td>".$row['trainer_id']."</td>";
echo "</tr><br>";
}
} else {
echo "0 results";
}
?>
</table>
</div>
</div>