logged_with_bugmenot Posted March 11, 2007 Share Posted March 11, 2007 A very easy one here for you guys I'm sure. $sql = "SELECT id, name, author, dts, colour1, colour2, resolution, widescreen, description, MATCH(name, author, colour1, colour2, resolution, widescreen, description) AGAINST ('$searchstring' IN BOOLEAN MODE) AS score FROM mytable WHERE MATCH(name, author, colour1, colour2, resolution, widescreen, description) AGAINST ('$searchstring' IN BOOLEAN MODE) ORDER BY score DESC "; I'd like to change that so that it searches the name/author/resolution/widescreen/description columns against $searchstring, and the colour1/colour2 columns against $searchcolourstring. I imagine its a very simple bit of syntax, but I just cant get it to work. Must be because it's late... Link to comment https://forums.phpfreaks.com/topic/42259-running-seperate-search-queries-against-different-columns-of-data-with-full-text/ Share on other sites More sharing options...
logged_with_bugmenot Posted March 11, 2007 Author Share Posted March 11, 2007 A-bump. Link to comment https://forums.phpfreaks.com/topic/42259-running-seperate-search-queries-against-different-columns-of-data-with-full-text/#findComment-205062 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.