Thatguy2001au
10-14-2002, 10:34 AM
HI
I have made a search engine for my site which uses a text box and an sql statement which uses what u type into the text box to make the search. The problem is, that the search only searches the whole string typed into the text box and it is unable to split up the words.
SO basically, if i was to type 'Hello World' into the search box, it will search a field in my database but the field must only have 'Hello World' in it for the search to return something.
So, what I want to do is be able to type in 'Hello World' and the search split up the two words and return something if either one of them is present in the database field.
I know my explanation is not the best but any help will be appreciated and i will try and explain things a little better.
I have made a search engine for my site which uses a text box and an sql statement which uses what u type into the text box to make the search. The problem is, that the search only searches the whole string typed into the text box and it is unable to split up the words.
SO basically, if i was to type 'Hello World' into the search box, it will search a field in my database but the field must only have 'Hello World' in it for the search to return something.
So, what I want to do is be able to type in 'Hello World' and the search split up the two words and return something if either one of them is present in the database field.
I know my explanation is not the best but any help will be appreciated and i will try and explain things a little better.