Berone Posted March 13, 2007 Share Posted March 13, 2007 I am not looking for a incredibly fancy way to do this, I just want a simple way that I can do a keyword search.. Any suggestions? Link to comment https://forums.phpfreaks.com/topic/42512-what-is-the-best-way-to-do-a-keyword-search/ Share on other sites More sharing options...
Lumio Posted March 13, 2007 Share Posted March 13, 2007 Where's the problem? Just make it like select `id`, `title`, `keywords` from `table` where `keywords` like '%keyword%'; Link to comment https://forums.phpfreaks.com/topic/42512-what-is-the-best-way-to-do-a-keyword-search/#findComment-206280 Share on other sites More sharing options...
bwochinski Posted March 13, 2007 Share Posted March 13, 2007 Better would be to make use of fulltext indexing. After creating the index: SELECT * FROM table WHERE MATCH(column1,column2) AGAINST ('search terms') Link to comment https://forums.phpfreaks.com/topic/42512-what-is-the-best-way-to-do-a-keyword-search/#findComment-206288 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.