

<?php require_once("includes/connection.php"); ?>
<?php
error_reporting(0);
$sql = "SELECT username, password FROM usertbl";
$result = $mysqli->query($sql) or die(mysql_error());

$array = array();

while($row = mysqli_fetch_array($result)) {
   $array[] = $row[0];
   $array1[] = $row[1];
}

?>
<!DOCTYPE html>
<html>
  <head>
    <title>Bootstrap 101 Template</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- Bootstrap -->
    <link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
 
    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="../../assets/js/html5shiv.js"></script>
      <script src="../../assets/js/respond.min.js"></script>
    <![endif]-->
  </head>
  <body>
      <table class="table">
  <thead>
    <tr>
      <th scope="col">Login</th>
      <th scope="col">password</th>
    
      
    </tr>
  </thead>
  <tbody>
     <tr>
      <?php for($i=0;$i< count($array);$i++){
     
     echo '<td>';
          print_r($array[$i]);
          
          echo '</td>'; 
           }
          ?>
      </tr>
      <tr>
  <?php for($i=0;$i< count($array);$i++){
    
     
     echo '<td>';
          print_r($array1[$i]);
          echo '</td>'; }
          
          ?>
          </tr>
