php - MySQL Fulltext search results in html content -


i have database oages of content. content in html format. want make content searchable figured fulltext search best. have query setup below:

select * pages match(content) against ('search'); 

that gives me list of pages, however, there multiple matches on pages. want pull out matches of content surrounding show little snippets of results on search results page.

i using php running query.

you use clause simple string matching, along lines of:

select content pages content '%keyword%'; 

Comments

Popular posts from this blog

r - how do you merge two data frames the best way? -

How to debug "expected android.widget.TextView but found java.lang.string" in Android? -

php - mySQL problems with this code? -