From 3f75893a0bf383d0baf6e661a603095518c84c8d Mon Sep 17 00:00:00 2001 From: Joshua Perry <45966243+jpez-development@users.noreply.github.com> Date: Sun, 20 Nov 2022 13:25:26 +0000 Subject: [PATCH] listing only accessible with id --- public/listing.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/public/listing.php b/public/listing.php index dfa653f..359d856 100644 --- a/public/listing.php +++ b/public/listing.php @@ -1,11 +1,14 @@ Product Page
'. populateContent() .'
'; require '../layout.php'; -require_once '../functions.php'; +if (!isset($_GET['listing_id'])) { + echo ''; +} function populateContent() { $pdo = startDB();