thorpe wrote:
What do you want from us?
I'm looking for help from you, that's what! 😕 Not asking for much, just someone to point me in the right direction...
$searchterms = preg_replace('/[[:space:]]+/', ' ', $searchstr); // strip extra spaces
$search_array = explode(' ', $searchterms);
$sql_where = '';
foreach($search_array as $word)
$sql_where .= '`keywords` LIKE \'%' . $word . '%\' OR ';
$query = 'SELECT * from search WHERE ' . rtrim($sql_where, ' OR');
I've tried endlessly to implement the same idea as the above, but end up with errors because I'm not quite sure how to make the code work with this other script. I just thought I'd ask for help, but apparently that's not going to happen...
Sorry for not having the php skills you do. I guess i'll just keep spending endless hours trying to make it work until I get it right.
Thanks anyways.