munnaz Posted September 30, 2010 Share Posted September 30, 2010 Hey, I was just wondering if you could help. I have a search and it only searches for exact phrases. $query="SELECT * FROM table WHERE title like '%$searchfield%' OR description like '%$searchfield%' ORDER BY title LIMIT $offset, $rowsPerPage"; $result=mysql_query($query); I was wondring if I could modify it so that if someone searches for something like 'Peeling a Banana' It seaches for the words 'peeling' and 'banana' and not the whole phrase as one? Thanks Link to comment https://forums.phpfreaks.com/topic/214802-searching-for-words-not-a-whole-phrase-problem/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.