I have a database which holds lots of text, I have made a simple search system. What I want to do is to highlight the word they searched, they way I thought of doing it was
<? print strtr($row['text'], "'".$_GET['searchterm']."'", "<strong>'".$_GET['searchterm']."'</strong>"); ?>
But then found that I cannot use html within that tag and also it is case sensative, so if someone searches for Internet and the word is stored as internet, then it wouldnt find it. Can anyone help?
Thanks in advance as always