According to the information you gave us
I can say that:
you want to let the user search for a word in your page
and it should be in a text field lets name it (searchKey)
use the built-in function that reads the names of the fields in the table and there values and compare it with your string (searchKey) if the're equal use replace function to change the color of the string when you view it to the user
if you give me more details I can help you more.....
I did this using PHP and ASP.
Thank you