Was thinking along these lines, but wouldn't it change the appearance of the keyword 
in some case-situations?
eg "here is your KeyWord" would become "here is your <strong>keyword</strong>"
=dn
PS haven't coded it to see


> or you could do something like
> str_replace(strtolower($search_term), "<b>$search_term</b>",
> strtolower($matched_string));
> 
> 
> 
> // -----Original Message-----
> // From: Boget, Chris [mailto:[EMAIL PROTECTED]]
> // Sent: Thursday, 18 October 2001 2:57 AM
> // To: 'Chris Payne'; DL Neil; [EMAIL PROTECTED]
> // Subject: RE: [PHP-DB] Highlighting search results ???
> // 
> // 
> // > 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?
> // 
> // Look into eregi_replace() or a similar function.
> // 
> // Chris
> // 
> 
> -- 
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to