<?php
$con=mysqli_connect("localhost","root","","students_results");
$result=mysqli_query($con,"SELECT * FROM results WHERE Admission_No='BSCS/2017/42251' ");
?>
<!DOCTYPE html>
<html>
<head>
<title>Form</title>
</head>
<link href="index.css" rel="stylesheet">
<body>
<section>
<h1>Semester 8</h1>
<div class="tbl-header">
<table cellpadding="0" cellspacing="0" border="0">
<thead>
<tr>
<th>ID</th>
<th>Unit Code</th>
<th>Unit Name</th>
<th>Grade</th>
<th>SEMESTER</th>
</tr>
</thead>
</table>
</div>
<div class="tbl-content">
<table cellpadding="0" cellspacing="0" border="0">
<tbody>
<?php
while($rows=mysqli_fetch_assoc($result))
{
?>
<tr>
<td><?php echo $rows['ID']; ?></td>
<td><?php echo $rows['Code']; ?></td>
<td><?php echo $rows['Name']; ?></td>
<td><?php echo $rows['Grade']; ?></td>
<td><?php echo $rows['Semester']; ?></td>
</tr>
</tbody>
<?php
}
?>
</table>
</div>
</section>
<script src="index.js"></script>
</body>
</html>