1.6
This commit is contained in:
parent
adfbb6f750
commit
2c6fd9a176
@ -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();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user