Posted by Evan Ramge
2014-03-20

Hey Tom! Thanks again for helping me with the return results part below. I am still struggling especially since I am new to PHP with having select results show a red value instead of the standard black text. Say I search the "social security number" of 012-33-4567 I want only that data entry for that person to be red. Any suggestions?
Posted by Tom
2014-03-21

Hi, this is not something I can write the step-by-step instruction about without coding and testing. So, I'll write an outline of procedures. First, You need to obtain the text you entered in the "social security number" search box. Second, get the value of "social security number" in a record( each row in the search result table ), and then check if the search word is in the value. You can use the strpos function to test it. If you find the search word in the value, then add "red background" to the row<tr> like
<tr style='background-color:red]'>