Upload New File

parent 10c64ecb
<?php
require('db.php');
include("auth.php");
$query = "SELECT * from donations ";
$result = mysqli_query($con, $query) or die ( mysqli_error());
$row = mysqli_fetch_assoc($result);
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Update Record</title>
<link rel="stylesheet" href="css/style.css" />
</head>
<body>
<div class="form">
<p><a href="index.php">Home</a> | <a href="insert.php">Insert New Record</a> | <a href="logout.php">Logout</a></p>
<h2>View Records</h2>
<table width="100%" border="1" style="border-collapse:collapse;">
<thead>
<tr><th><strong>Requested Person Name</strong></th><th><strong>Requested Blood Group</strong></th><th><strong>Donor Name</strong></th><th><strong>Donated date</strong></th><th><strong>Hospital Name</strong></th></tr>
</thead>
<tbody>
<?php
$count=1;
$sel_query="Select * from donations ORDER BY ddate desc;";
$result = mysqli_query($con,$sel_query);
while($row = mysqli_fetch_assoc($result)) { ?>
<tr><td align="center"><?php echo $row["Rname"]; ?></td><td align="center"><?php echo $row["blood1"]; ?></td><td align="center"><?php echo $row["Dname"]; ?></td><td align="center"><?php echo $row["ddate"]; ?></td><td align="center"><?php echo $row["Hname"]; ?></td></tr>
<?php $count++; } ?>
</tbody>
</table>
</div>
</body>
</html>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment