-
Notifications
You must be signed in to change notification settings - Fork 0
/
viewPatientScript.php
36 lines (36 loc) · 1.28 KB
/
viewPatientScript.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
<?php
session_start();
if(!isset($_SESSION['loginid']))
{
header("location:index.php?al=".sha1('session'));
}
require("config.php");
?>
<table border="0">
<tr style="text-decoration:underline;">
<th>Sr. No.</th>
<th>HEARTBEAT <br><a href="graph_hb/index.php?al=<?php echo $_SESSION['al'];?>" style="color:rgba(174,197,4,1.00);font-size:12px;">[Click For Graph]</a></th>
<th>TEMPERATURE <br><a href="graph/index.php?al=<?php echo $_SESSION['al'];?>" style="color:rgba(174,197,4,1.00);font-size:12px;">[Click For Graph]</a></th>
<th>SPO2<br><a href="graph_sp/index.php?al=<?php echo $_SESSION['al'];?>" style="color:rgba(174,197,4,1.00);font-size:12px;">[Click For Graph]</a></th>
<th>TIME</th>
<th>DATE</th>
<th>DELETE</th>
</tr>
<?php
$sr=1;
$ve = mysqli_query($al, "SELECT * FROM hms_data WHERE userid = '".$_SESSION['al']."' ORDER BY id DESC");
while($y = mysqli_fetch_array($ve))
{
?>
<tr>
<td><?php echo $sr++;?></td>
<td><?php echo $y['heartbeat'];?></td>
<td><?php echo $y['temperature'];?></td>
<td><?php echo $y['spo'];?></td>
<td><?php echo $y['time'];?></td>
<td><?php echo $y['date'];?></td>
<td><a href="deletePatientRecord.php?al=<?php echo $y['id'];?>&userid=<?php echo $_SESSION['al'] ;?>">DELETE</a></td></tr>
<?php
}//echo mysqli_error($al);
?>
</table>