deepskyblue.co.uk
|
| Posted: 10/29/2002, 6:41 AM |
|
I have got a variation on the highlight search keyword function:
article = rs2("article_content")
if keyword <> "" then
string_to_split = keyword
tok = split(string_to_split, " ")
for i = 0 to ubound(tok) step 1
article = replace(article, tok(i), "<font color = red>"& tok(i) &"</font>")
next
end if
However this function only replaces the keyword if the case is the same, even though the search displays results regardless of case.
I.e. a search for "Prime Time"
returns "....prime time recruitment are the uk's leading recruitment....."
but the "prime time" part is not highlighted.... if it returned
"....Prime Time recruitment are the uk's leading recruitment....."
then it would be highlighted.....
Any ideas, thanks in advance
Paul
|
|
|
 |
deepskyblue.co.uk
|
| Posted: 10/29/2002, 6:45 AM |
|
Sorry i forgot to say i am using ASP+mySQL if that helps
|
|
|
 |
|