Hi!
I´ve done something like this:
$data[$i] = eregi_replace($search, "<B>".$search."</B>",$data[$i]);
(it makes the search-string bold, for a red one it would have to be something like
$data[$i] = eregi_replace
($search, "<font color="FF0000">".$search."</font>",$data[$i]);
With: $data[$i] - Data from Db -Table (retrieved via a loop) and $search - the search-string
hope that helps...
One Problem: This eregi_replace is case insensitiv, it rewrites the search-string as it was given by the user, so the right case may be lost (depends on your sql-query...)
Hope that helps!
If I couldn´t make it clear, feel free to ask again!
Albin