I want to put the buttons right below the table, which I retrieve from database using PHP. But I don't know how to put the buttons below as they keep appearing above the table.
<html>
<body bgcolor="#E6E6FA"><center>
<h2>Existing Librarian System Access Profile</h2><br><br>
<?php
$hostid= 'localhost';
$user='root';
$pass='';
$db= 'projectdata';
$con = mysqli_connect($hostid, $user, $pass,$db);
mysqli_select_db($con,$db);
$query = "SELECT librarian_id, username, name, ic_no, phone_no, date_created, date_update FROM Librarian";
$run=mysqli_query($con, $query);
$num_rows=mysqli_num_rows($run);
if($run===FALSE){
die(mysql_error());
}
if($num_rows>0)
{
echo "<table><tr><th>Librarian ID</th><th>Username</th><th>Name</th><th>National ID No</th><th>Phone No</th><th>Date Created</th><th>Date Update</th>";
while ($row=mysqli_fetch_array($run))
{
$librarian_id=$row['librarian_id'];
$username=$row['username'];
$name=$row['name'];
$id_no=$row['ic_no'];
$phone_no=$row['phone_no'];
$date_created=$row['date_created'];
$date_update=$row['date_update'];
echo "<tr><td>$librarian_id</td><td>$username</td><td>$name</td><td>$id_no</td><td>$phone_no</td><td>$date_created</td><td>$date_update</td></tr>";
}
}?><input type="submit" name="add" value="Add Librarian"><input type="submit" name="delete" value="Delete Librarian"></center></body></html>