prepare("SELECT * FROM items WHERE renter_id = ? AND status = 'rented'"); $stmt->execute([$user_id]); $items = $stmt->fetchAll(); } elseif ($user_role === 'vendor') { // Fetch items listed by the vendor $stmt = $pdo->prepare("SELECT * FROM items WHERE owner_id = ?"); $stmt->execute([$user_id]); $items = $stmt->fetchAll(); } ?>

Welcome, !

Welcome to your RentEase dashboard.

Your role is:

Add New Item My Listings
Your Rented Items
Your Listed Items

No items found.

<?php echo htmlspecialchars($item['name']); ?>

Price: $ per day

Location:

View Details

Rented until:

Status:

Click here to log out.