I just posted a question earlier. Sorry, but I need to clarify. In the list that gets returned to the visitor, MANY items may need an adaptor ("With Adaptor"), not just monitors. And, I want the "with adaptor" highlighted in different font color. So, somehow, PHP will have to "look" at the list returned from the mySQL query, and find any "With Adaptor" notations, and THEN highlight it.
Currently, I basically have:
echo " . $item["ItemName"] . ";
And then the list of items (ItemName) may or may not have "With Adaptor" in the description. And if it does, then I want it hightlighted, etc.
So, how would I work in the "echo str_replace" stuff? How and where exactly would I put the code?
For reference, here is my earlier post:
Hi, when mySQL database is queried, listed results are returned to visitor on html page. Some of the listed results have this exact phrase: "With Adaptor." How can my visitor's html page "know" to highlight this phrase, if it comes up, in RED? For example, after visitor makes a query, a list of dozen parts will be returned, like:
keyboard (model abc),
mouse (model wxy),
printer (model 123),
monitor (With Adaptor).
Now, see the item above that says, "With Adaptor." I want the, "With Adaptor," to be displayed to the visitor in bold red (so they, uh, make sure to include the adaptor!) I do know how to code html to put the font and color tags, but I don't know how to "tell php" to ONLY put those font tags if the specific keywords, "With Adaptor" come up.
Thank you!