query("SELECT p.id, p.name, p.barcode, i.quantity FROM products p JOIN inventory i ON p.id = i.product_id ORDER BY p.name"); $inventory_items = $stmt->fetchAll(); } catch (PDOException $e) { echo "
| Product Name | Barcode | Current Stock | Update Stock |
|---|---|---|---|
| No products found in inventory. | |||
| = htmlspecialchars($item['name']) ?> | = htmlspecialchars($item['barcode'] ?? 'N/A') ?> | = htmlspecialchars($item['quantity']) ?> | |