prepare("SELECT p.*, c.name as category_name FROM products p JOIN categories c ON p.category_id = c.id WHERE (p.name LIKE ? OR p.description LIKE ? OR c.name LIKE ?) AND p.is_active = 1 ORDER BY p.id DESC"); $stmt->execute(['%'.$q.'%', '%'.$q.'%', '%'.$q.'%']); $results = $stmt->fetchAll(); } ?>
关键词: ""