listing only accessible with id

This commit is contained in:
Joshua Perry 2022-11-20 13:25:26 +00:00
parent 726f927987
commit 3f75893a0b
1 changed files with 4 additions and 1 deletions

View File

@ -1,11 +1,14 @@
<?php
require_once '../functions.php';
$pageTitle = 'iBuy - Product Listing';
$pageContent = '<h1>Product Page</h1>
<article class="product">'. populateContent() .'</article>';
require '../layout.php';
require_once '../functions.php';
if (!isset($_GET['listing_id'])) {
echo '<script>window.location.href = "index.php";</script>';
}
function populateContent() {
$pdo = startDB();