Results 1 to 3 of 3
Apr 26, 2005, 10:19 #1
searching database >> highlighting result
at this moment I´m working on a search script. I want the searched strings to be highlighted in the output.
somebody enters the word monday in the searchfield. My script makes a database query and delivers the hole text: Meatless Monday prevents causes of heart disease, ...
I want the word monday e.g. with a yellow background or something.
I´m using while and mysql_fetch_object in my script.
Any ideas or sources?
Apr 26, 2005, 10:22 #2
Apr 29, 2005, 00:21 #3
thanks, I forgot about that. Unfortunately str_ireplace (case-insensitive) is just PHP 5. So I´m now using eregi_replace too.