Hello
I want to make a search feature to the content of my website. I suppose, the classic way to do that is by making a form where the typed value $typed becomes a part of a select statement like this:
I would like to make a statement which allows for e.g. mis-spelling or different forms of a word. Say that the user searches for "woman" - and there happens to be content containing the word "women" instead ...Code:select from mytable where field like '%$typed%'
Is there perhaps also a way of ordering the results by similarity? E.g.:
Cheers JCode:select from mytable where field like '%$typed%' order by similarity



Reply With Quote
Bookmarks