query("SELECT * FROM products ORDER BY created_at DESC"); $products = $stmt->fetchAll(); } catch (PDOException $e) { echo "
Database error: " . htmlspecialchars($e->getMessage()) . "
"; $products = []; } ?>

Manage Products

' . htmlspecialchars($_SESSION['success_message']) . ''; unset($_SESSION['success_message']); } if (isset($_SESSION['error_message'])) { echo ''; unset($_SESSION['error_message']); } ?>

Add New Product

Existing Products

ID Name Price Barcode Actions
No products found.
Edit