-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdoctor_channeling_costs_list.php
47 lines (33 loc) · 1.36 KB
/
doctor_channeling_costs_list.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
<?php
require_once('header.php');
?>
<table class="table table-borderless">
<thead>
<tr>
<th class="w-25">Name</th>
<th class="w-25">Email</th>
<th class="w-25">Channeling_Costs</th>
<th class="w-25">Add Payment</th>
<th class="w-25"></th>
</tr>
</thead>
<tbody>
<?php
//getting the list of users
$query = "SELECT * FROM doctor_db WHERE User_Delete=0 ORDER BY First_Name";
$users = mysqli_query($connection, $query);
while ($user = mysqli_fetch_assoc($users)) {
?>
<tr>
<td><h6><small>Dr.<?php echo $user['First_Name'] ?></small></h6></td>
<td><h6><small><?php echo $user['Email'] ?></small></h6></td>
<td><h6><small><?php echo $user['doctor_channeling_costs'] ?></small></h6></td>
<form action="db_add_channeling_costs.php?var1=<?= $user['Doctor_ID'] ?>" method="post">
<td><input class="form-control form-control-sm" type="text" placeholder="Enter channeling costs" name="enter_payment"></td>
<td><button type="submit" class="btn btn-primary" name="add_payment">Submit</button></td>
</form>
</tr>
<?php } ?>
</tbody>
</table>
<?php require_once('footer.php'); ?>