-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathviewdoctor.php
74 lines (68 loc) · 1.86 KB
/
viewdoctor.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
63
64
65
66
67
68
69
70
71
72
73
74
<?php
include("header.php");
include("dbconnection.php");
if(isset($_GET[delid]))
{
$sql ="DELETE FROM doctor WHERE doctorid='$_GET[delid]'";
$qsql=mysqli_query($con,$sql);
if(mysqli_affected_rows($con) == 1)
{
echo "<script>alert('doctor record deleted successfully..');</script>";
}
}
?>
<div class="wrapper col2">
<div id="breadcrumb">View Doctor </div>
</div>
<div class="wrapper col4">
<div id="container">
<section class="container">
<h2>Search Patient - <input type="search" class="light-table-filter" data-table="order-table" placeholder="Filtrer" /></h2>
<table class="order-table">
<thead>
<table style="width:100%;" border="3">
<tbody>
<tr>
<td>Doctor Name</td>
<td>Mobile Number</td>
<td>Department</td>
<td>Login ID</td>
<td>Consultancy Charge</td>
<td>Education</td>
<td>Experience</td>
<td>Status</td>
<td>Action</td>
</tr>
<?php
$sql ="SELECT * FROM doctor";
$qsql = mysqli_query($con,$sql);
while($rs = mysqli_fetch_array($qsql))
{
$sqldept = "SELECT * FROM department WHERE departmentid='$rs[departmentid]'";
$qsqldept = mysqli_query($con,$sqldept);
$rsdept = mysqli_fetch_array($qsqldept);
echo "<tr>
<td> $rs[doctorname]</td>
<td> $rs[mobileno]</td>
<td> $rsdept[departmentname]</td>
<td> $rs[loginid]</td>
<td> $rs[consultancy_charge]</td>
<td> $rs[education]</td>
<td> $rs[experience]</td>
<td>$rs[status]</td>
<td>
<a href='doctor.php?editid=$rs[doctorid]'>Edit</a> | <a href='viewdoctor.php?delid=$rs[doctorid]'>Delete</a> </td>
</tr>";
}
?> </tbody>
</table>
<p> </p>
</div>
</div>
</div>
<div class="clear"></div>
</div>
</div>
<?php
include("footer.php");
?>