Re: Highlighting search results ???

From: Date: Wed, 17 Oct 2001 18:43:38 +0000
Subject: Re: Highlighting search results ???
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-13438@lists.php.net to get a copy of this message
Hi there, Thank you (And everyone else) for your suggestions - I have it working now. I should have realised how to do it as I have a censor script I wrote about a month ago which practically does the same thing but for foul language. A question though, it brings back the results only if they match the case in the database. Example, if someone enters planet in the search engine, it brings back all results with planet AND Planet in (Which is good), but when I do the bold replacement bit it only replaces the case they enter in the search box. If they enter planet, ONLY planet is bold and not Planet or anything else - is there a way to deal with this? Thank you all so much, you are true life savers :-) Chris > I have my search engine working great (Abit like Google) but how do I highlight in the results the keywords I searched > for? This is a must for my search engine. > > > Chris, > > How about using one of the string search and replace functions to wrap the keyword within <strong> tags - looping > through multiple keywords if relevant. > > =dn > > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net > For additional commands, e-mail: php-db-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.db (#13438) next »