Jump to content

Searching for words in mysql


graham23s

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.