My search in made in mysql, but I want to use PHP to high lite match words either by making them bold or wrapping them with a <span style=...> .
How do I compare my $keywords to the $search_data string and then wrap the matched words in bold?
$keywords = "highlite search word";
$search_data = "I want to highlite each word that is found from
a group of words during a search of unhighlited data.";
// the results I want are:
$search_results = "I want to <b>highlite</b> each <b>word</b> that is found from
a group of words during a <b>search</b> of unhighlited data.";
echo $search_results;
Sam
;