-
Notifications
You must be signed in to change notification settings - Fork 0
/
receiver variable disp.php
82 lines (70 loc) · 1.96 KB
/
receiver variable disp.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
75
<</p><?php
$mysql_id=mysqli_connect("localhost","root","","bloodbank_db");
//$mysql_id=include('conn.php')
$query="SELECT * FROM `RECEIVER_VARIABLE`; ";
$res=mysqli_query($mysql_id,$query);
if($res->num_rows>0)
{
?>
<html>
<link rel="stylesheet" href="common.css">
<div class="nav">
<div class="topnav">
<a class="active" href="welcome.html">Home</a>
<a href="contact.html">Contact</a>
</div>
</div>
<style>body {
background-image:
url("images/8.jpg");
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
}
h1 {
color: aquamarine;
text-align: center;
background-color: black;
height: 50px;
opacity:0.8;
width :800px;
}</style>
<center><h1 align ="center" >Received blood data</h1></center>
<body>
<table align ="center" border="1px" style ="color:yellow;background-color:black;opacity:0.7; line-height:30px; line-height:30px;">
<tr>
<th colspan = "8"><h2>INVENTORY</h2></th>
</tr>
<tr>
<th>RECEIVER ID</th>
<th>EMPLOYEE ID</th>
<th>CONSULTANT DOCTOR</th>
<th>REQUIERED QUANTITY</th>
<th>HOSPITAL NAME</th>
<th>REQUIRED BLOODGROUP</th>
<th>DATE OF RECEIVING</th>
</tr>
<?php
while($rows=mysqli_fetch_assoc($res))
{
?>
<tr>
<td><?php echo $rows['RECEIVER_ID']; ?></td>
<td><?php echo $rows['EMPLOYEE_ID']; ?></td>
<td><?php echo $rows['CONSULTANT_DOCTOR']; ?></td>
<td><?php echo $rows['REQUIRED_QUANTITY']; ?></td>
<td><?php echo $rows['HOSPITAL_NAME']; ?></td>
<td><?php echo $rows['REQUIRED_BLOODGROUP']; ?></td>
<td><?php echo $rows['REQUIRED_DATE']; ?></td>
</tr>
<?php
}
?>
</table>
</body>
</html>
<?php
}
else
echo "Empty set";
?>