-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpatientlist.php
73 lines (62 loc) · 1.64 KB
/
patientlist.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
<?php
include_once("header.php");
$result=mysqli_query($conn,"SELECT pid,pname,page,gender,papa,mama,PhNo FROM ptable where doc_id = '{$_SESSION["user_id"]}'");
unset($_SESSION["pid"]);
echo "<table border='1' id = 'customers'>
<tr>
<th>Patient Id</th>
<th>Patient Name</th>
<th>Patient Age</th>
<th>Patient Gender</th>
<th>Patient Father</th>
<th>Patient Mother</th>
<th>Patient Phone Number</th>
</tr> ";
while($row=mysqli_fetch_array($result))
{
echo "<tr>";
echo "<td>".$row['pid']."</td>";
echo "<td>".$row['pname']."</td>";
echo "<td>".$row['page']."</td>";
echo "<td>".$row['gender']."</td>";
echo "<td>".$row['papa']."</td>";
echo "<td>".$row['mama']."</td>";
echo "<td>".$row['PhNo']."</td>";
echo "</tr>";
}
mysqli_close($conn);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<style>
#customers {
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
border-collapse: collapse;
width: 100%;
}
#customers td, #customers th {
border: 1px solid #ddd;
padding: 8px;
}
#customers tr:nth-child(odd){background-color: #ccffff;}
#customers tr:nth-child(even){background-color: #e6ffff;}
#customers th {
padding-top: 12px;
padding-bottom: 12px;
text-align: left;
background-color: #003366;
color: white;
}
</style>
</head>
<body>
<h1 align="center">PATIENT LIST</h1>
<?php echo "</table>";?>
<form action = "index.php">
<input type="submit" name="" value="GO BACK">
</form>
</body>
</html>