This commit is contained in:
Flatlogic Bot 2025-12-11 19:59:12 +00:00
parent adfbb6f750
commit 2c6fd9a176

View File

@ -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();
}