Re: full text search and how to underline keyword in results

From: Date: Sun, 25 Aug 2002 23:52:51 +0000
Subject: Re: full text search and how to underline keyword in results
Groups: php.db 
Request: Send a blank email to php-db+get-21359@lists.php.net to get a copy of this message
The first argument passed to eregi_replace is " ".$keywords[$i]." " You are concatenating the string and a space on the end and front. This was obviously used as a hack to make sure only full words were highlighted. A fix for this? A simple hack would be to take out the spaces, so it is simply $keywords[$i], although you could figure out a proper regex if you don't want partial words higlighted. Adam

« previous php.db (#21359) next »