I have this search engine. When someone searches for a word, I would like it to display the result with the word that was searched for bolded. Simple...
$foo=eregi_replace("$searchword","<b>$searchword</b>",$foo);
The problem is:
The searchword is replaced using the case of the word that they searched for. I would like it to maintain the original case of the word as it is in the database.
I can figure out a jerry-rigged version of this, but I'm sure there's an easier way...