query("SELECT * FROM products ORDER BY created_at DESC"); $products = $stmt->fetchAll(); } catch (PDOException $e) { echo "
| ID | Name | Price | Barcode | Actions |
|---|---|---|---|---|
| No products found. | ||||
| = htmlspecialchars($product['id']) ?> | = htmlspecialchars($product['name']) ?> | = htmlspecialchars(number_format($product['price'], 2)) ?> | = htmlspecialchars($product['barcode'] ?? 'N/A') ?> | Edit |