Home > Backend Development > PHP Tutorial > 多关键词模糊搜索解决方法

多关键词模糊搜索解决方法

WBOY
Release: 2016-06-13 13:46:33
Original
1147 people have browsed it

多关键词模糊搜索
就是比较常见的那种,同时查询两三个关键词,以空格分隔。然后进行查询。不需要太复杂,能简单的实现就行。怎么做啊?

我想的是explode分隔出来出来?然后呢?



------解决方案--------------------
sorry..

PHP code
$value = implode("%' OR `TITLE` LIKE '%",$arr); <div class="clear">
                 
              
              
        
            </div>
Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template