Could someone please help me to highlight the searchterm in my php search code? Below is the code that I am currently using, and it works fine. Would just like to add a high
You will want to use a regex (preg_replace) to search for your term and replace it with said term surrounded with .
preg_replace
Look at the documentation of preg_replace for how to use it: http://us3.php.net/preg_replace