RE: [PHP-DB] Highlighting search results ???
| From: | Boget, Chris | Date: | Wed, 17 Oct 2001 18:57:03 +0000 |
| Subject: | RE: [PHP-DB] Highlighting search results ??? | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-13439@lists.php.net to get a copy of this message | ||
> 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