-
Notifications
You must be signed in to change notification settings - Fork 0
/
vpage.php
76 lines (67 loc) · 1.27 KB
/
vpage.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
76
<html>
<head>
<title>blood donation|registration form</title>
<link rel="stylesheet" href="styles.css">
<script type="text/javascript" src="script.js"></script>
<style>
table, th, td{
margin:auto;
margin:;
background-color:black;
size:30px;
padding:10px;
color:white;
}
.donors{
color:black;
margin:50px 0px 0px 600px;
}
.vpage{
background-color:gray;
}
</style>
</head>
<body class="vpage">
<a href="index.php"> <span class="home" align=right>Home</span></a>
<h1 class="donors"><b>YOUR DONORS...</b></h1>
<div>
<table>
<thead>
<tr>
<th>No</th>
<th>First name</th>
<th>Last name</th>
<th>Blood Group</th>
<th>Pincode</th>
<th>Mb no</th>
<th>Email</th>
</tr>
</thead>
<tbody>
<?php
$fd=$_POST['fd'];
$cd=$_POST['cd'];
include_once 'db.php';
$no = 1;
$query="select *from volunteer where bloodgr='$fd' AND pincode='$cd';";
$sql=mysqli_query($conn,$query);
while($row = mysqli_fetch_array($sql))
{
echo '<tr>
<td>'.$no.'</td>
<td>'.$row['fname'].'</td>
<td>'.$row['lname'].'</td>
<td>'.$row['bloodgr'].'</td>
<td>'.$row['pincode'].'</td>
<td>'.$row['mbno'].'</td>
<td>'.$row['eid'].'</td>
</tr>' ;
$no++;
}
mysqli_close($conn);
?>
</tbody>
</table>
</div>
</body>
</html>