Hello there!
I've been browsing around to find something similar, but with no success. The problem itself is probably not that hard - but it was for me.. 😃
I am using this code snippet (function) to highlight certain entries that I have entered into an array (dynamically feeded using mysql),[INDENT][FONT=Courier New]function colorizeDescription($colorizeDescription_entry) {
global $VAR;
switch (TRUE) {
case (eregi($VAR["STRING"]["moviesToHighlight"], $colorizeDescription_entry)):
echo ' style="background-color: #408040; color: #FFFFFF;" title="here I would like to list the matched row (description)"';
break;
}
}[/FONT][/INDENT]
I have highlighted the code (red) that I use to match a pattern to the different description texts.
What I am looking for is to get the matched row of the highlight (from the array), so I can get the pattern that the highlighted description was 'found with'.
I hope this is possible... Thank you everyone for your help!! 😃
Best regards,
Stephan