graham23s Posted June 23, 2008 Share Posted June 23, 2008 Hi GUys, i have made a mini search engine, it pulls from mysql! i have came across an error (kind of) if i search for 1 word, it brings results back great! but if theres 2 words that ARE in the database but aren't together, i get no results back! is there a way to search all the words at all? instead of expecting them to be beside each other? thanks guys Graham Link to comment https://forums.phpfreaks.com/topic/111546-searching-for-words-in-mysql/ Share on other sites More sharing options...
whiteboikyle Posted June 23, 2008 Share Posted June 23, 2008 Try and make it do this "your name kyle cribbs test type" Have it make an array for each word.. So like explode where the spaces are. So it can be "your" "name" "kyle" "cribbs" "test" "type" I think you could use the explode function.. Correct me if i am wrong.. Trying to help xD Link to comment https://forums.phpfreaks.com/topic/111546-searching-for-words-in-mysql/#findComment-572531 Share on other sites More sharing options...
graham23s Posted June 23, 2008 Author Share Posted June 23, 2008 Hi Mate, Thats an idea! explode them! i will give that a whirl, thanks for the input mate Graham Link to comment https://forums.phpfreaks.com/topic/111546-searching-for-words-in-mysql/#findComment-572536 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.