All Products
Discover our curated collection of timeless pieces.
query('SELECT id, name, price, image_url, slug FROM products ORDER BY created_at DESC'); if ($stmt) { $products = $stmt->fetchAll(PDO::FETCH_ASSOC); } } catch (PDOException $e) { // If the table doesn't exist, it's not a fatal error for the page load. if ($e->getCode() === '42S02') { $error_message = "The products table is not available. Please run the installer."; } else { $error_message = "An error occurred: " . $e->getMessage(); } } function format_price($price) { return 'đ' . number_format($price, 0, ',', '.'); } ?>
Discover our curated collection of timeless pieces.