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
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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.