scandiweb-products/index.php

25 lines
454 B
PHP
Raw Normal View History

2022-07-27 06:01:33 -04:00
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<link rel="stylesheet" href="index.css"/>
<title>Product List</title>
</head>
<body>
<div id="header">
<h1 id="title">Product List</h1>
<div id="buttons">
<button>ADD</button>
<button id="delete-product-btn">MASS DELETE</button>
</div>
</div>
<?php
require 'model/product.php';
$products = Product::selectAll();
// TODO
echo json_encode($products);
?>
</body>
</html>