Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在编写一个搜索引擎,目前它只搜索与一堆其他信息一起提交的关键字。我怎么能要求它在其他领域看?
这就是我所拥有的:
$construct .= "keywords LIKE '%$search_each%'";
这是我需要做的编码理论:
$construct .= "keywords, name, description, id LIKE '%$search_each%'";
添加额外值以包含的正式方法是什么?
我认为您正在尝试做的是:
$construct .= "keywords LIKE '%$search_each%' OR name LIKE '%$search_each%' OR description LIKE '%$search_each%' OR id LIKE '%$search_each%'";