forked from Biplob14/DIS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathspecialty_list.php
62 lines (40 loc) · 1.19 KB
/
specialty_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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php include"header.php" ?>
<div>
<table class="table table-hover table-striped">
<thead>
<th>Index</th>
<th>User ID</th>
<th>Name</th>
<th>Contact</th>
<th>Gender</th>
</thead>
<tbody>
<?php
$doc_specialty=$_POST['doc_specialty'];
$query = "SELECT * FROM doc_signup WHERE specialty= '$doc_specialty'";
$select_posts = mysqli_query($db,$query);
while ($row = mysqli_fetch_assoc($select_posts)){
$first_name = $row['first_name'];
$last_name = $row['last_name'];
$designation = $row['designation'];
$specialty = $row['specialty'];
$professional_statement = $row['professional_statement'];
$img=$row['profile_img']
echo "
<div class='inner_content'>
<div><img src='$img' class='imgs'></div>
<div>{$first_name} {$last_name}
<br> {$designation}
<br>{$specialty}
<br>{$professional_statement}
<br><br>
<button type='button' class='btn btn-light'><a href='doc_appointment.php'><b>Request Appointment</b></a></button>
</div>
</div>
";
}
?>
</tbody>
</table>
</div>
<?php include "footer.php" ?>