souce code for display
<?php $con=mysqli_connect("localhost","root","","database"); session_start(); $result=$con->query("SELECT * FROM record"); if($result->num_rows!=0) { echo "<table border='1'> <tr> <th> id </th> <th> name </th> <th> roll </th> <th> subject</th> </tr>"; while($rows=$result->fetch_assoc()) { echo "<tr> <th>".$rows['id']."</th> <th>".$rows['name']."</th> <th>".$rows['roll']."</th> <th>".$rows['subject']."</th> </tr>"; ...