-
Notifications
You must be signed in to change notification settings - Fork 0
/
procedure.php
54 lines (49 loc) · 1.18 KB
/
procedure.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
<?php
$mysql_id=mysqli_connect("localhost","root","","bloodbank_db");
$search_idd=$_POST['search_id'];
$queryd = "CALL BLOOD_TYPE_COUNTER('$search_idd');";
$res=mysqli_query($mysql_id,$queryd);
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/12.jpg");
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
}</style>
<h1 align ="center">BLOOD DONATIONS</h1>
<body>
<table align ="center" border="3x" style ="color:white;background-color:black;opacity:0.7; line-height:30px;">
<tr>
<th colspan = "9"><h2>INVENTORY</h2></th>
</tr>
<tr>
<th>NO OF PEOPLE WHO DONATED ARE </th>
</tr>
<?php
while($rows=mysqli_fetch_assoc($res))
{
?>
<tr><td><?php echo $rows['NUM']; ?></td>
</tr>
<?php
}
?>
</table>
</body>
</html>
<?php
}
else
echo "Empty set";
?>