Hi There,
I am trying to develop a search application and display result some what like googles but a bit unique.
I get an array of text from DB table than contains or match an array after the search keyword
likes (''machine","ticket" )
example the query return a result like;
$cBody ="The blah blah upper level machine had installed with holder blah blah, blah...... to ticket hold with blah ...blah";
if I uses
$cBodySearchResult = substr_replace($cBody, ', 50);
echo $cBodySearchResult;
//
The will be the result:
"The blah blah upper level machine had installed with ...."
I will perfer had search with the given array and highlight it likes :
"... upper level <b>machine</b> had installed with .... to <b>ticket</B> hold with blah ..."
Thanks in advance