query("SELECT id, name, category, price, image_url FROM products WHERE is_featured = TRUE LIMIT 6"); $products = $stmt->fetchAll(); } catch (PDOException $e) { // If the table doesn't exist, it might be because install.php hasn't been run. // We can fail silently and just show an empty product list. // In a real app, this should be logged. } ?>
Our products are being prepared. Please run the installation script to see sample products.