<?php
  $connection = mysqli_connect("localhost", "root", "root", "test");

  $query = "SELECT * FROM items";
  $result = mysqli_query($connection, $query);
?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>Products</title>
  <style>
    div {
      padding: 5px 0px;
    }
  </style>
</head>
<body>
  <section>
    <?php
      foreach($result as $item) {
        echo "<div>".$item["name"]." ".$item["price"]."</div>";
      }
    ?>
  </section>
</body>
</html>