I have search code that is below:
The problem is:
The full text is "leonardo dicaprio"
If i search 'leo' or 'leonardo' or 'dicaprio' or 'leonardo dicaprio' is ok.
If change position or cut the words like if I search 'leo dicap' or dicaprio leonardo it won't show the result.
Can someone out there help me how to make it possible?
Code:
$term = $vbulletin->input->clean_gpc('r', 'term', TYPE_STR); if ($term != ''){$term_db .= "AND f.field8 like '%$term%' OR f.field10 like '%$term%' OR f.field12 like '%$term%' OR f.field13 like '%$term%' OR f.field21 like '%$term%' "; }
The full text is "leonardo dicaprio"
If i search 'leo' or 'leonardo' or 'dicaprio' or 'leonardo dicaprio' is ok.
If change position or cut the words like if I search 'leo dicap' or dicaprio leonardo it won't show the result.
Can someone out there help me how to make it possible?
Comment