From 2c6fd9a176231886962919d1b5991040e6b58a1b Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Thu, 11 Dec 2025 19:59:12 +0000 Subject: [PATCH] 1.6 --- dashboard.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dashboard.php b/dashboard.php index a331d8f..f177eaf 100644 --- a/dashboard.php +++ b/dashboard.php @@ -26,7 +26,7 @@ if ($user_role === 'user') { $items = $stmt->fetchAll(); } elseif ($user_role === 'vendor') { // Fetch items listed by the vendor - $stmt = $pdo->prepare("SELECT * FROM items WHERE owner_id = ?"); + $stmt = $pdo->prepare("SELECT * FROM items WHERE vendor_id = ?"); $stmt->execute([$user_id]); $items = $stmt->fetchAll(); }