Multi word search in PHP/MySQL

前端 未结 4 1478
故里飘歌
故里飘歌 2020-12-03 16:43

I\'m struggling to create a search that searches for multiple words. My first attempt yielded no results whatsoever and is as follows:

  require_once(\'datab         


        
4条回答
  •  被撕碎了的回忆
    2020-12-03 17:05

    Take a look at MySQL fulltext searches, if you must use MySQL. Otherwise take a look at SOLR, which is a fulltext search engine. You can use MySQL and SOLR in combination to provide enterprise level search capabilities for your apps.

提交回复
热议问题