<html>
<body>
<?php 
include("config.php");
$fetch_query = "SELECT * FROM members";


echo '<table border="0" cellspacing="2" cellpadding="2"> 
      <tr> 
          <td> <font face="Arial">First Name</font> </td> 
          <td> <font face="Arial">Middle Name</font> </td> 
          <td> <font face="Arial">Birthdate</font> </td> 
          <td> <font face="Arial">Gender</font> </td> 
      </tr>';

if ($result = $db->query($fetch_query)) {
    while ($row = $result->fetch_assoc()) {
        $Last_Name = $row["Last_Name"];
        $First_Name = $row["First_Name"];
        $Middle_Initial = $row["Middle_Initial"];
        $Birthdate = $row["Birthdate"];
        $Gender = $row["Gender"];
        $Address = $row["Address"]; 
        $Contact_Number = $row["Contact_Number"]; 
        $Email = $row["Email"]; 
        $Password = $row["Password"]; 
        $Usertype = $row["Usertype"]; 

        echo '<tr> 
                  <td>'.$Last_Name.'</td> 
                  <td>'.$First_Name.'</td> 
                  <td>'.$Middle_Initial.'</td> 
                  <td>'.$Birthdate.'</td> 
                  <td>'.$Gender.'</td>
                  <td>'.$Address.'</td>  
                  <td>'.$Contact_Number.'</td> 
                  <td>'.$Email.'</td> 
                  <td>'.$Password.'</td> 
                  <td>'.$Usertype.'</td> 
              </tr>';
    }
    $result->free();
} 
?>
</body>
</html>