Hope this makes sense, I'll hopefully paint a clear picture.
<?php $rx_event_color = $rx_image_color = '#FF0000';
if ($a['rx_event_exists'] == 1) { $rx_event_color = '#00FF00'; }
if ($a['rx_scanned'] == 1) { $rx_image_color = '#00FF00'; }
else if ($a['rx_scanned'] > 1) { $rx_image_color = '#FFFF00'; }
?>
I don't want the whole background td to change color, only the text inside the td based on the event (data in sql)
if ($a['rx_event_exists'] == 0)
{
echo "<tr><td style='background:$rx_event_color'><a href='"
. matry::here_to('new', array('tfilt'=>'WR', 'pfilt'=>$patient->code))
. "'>**Rx Event Not Created**</a></td></tr>";
}
I tried to just change background to color and also tried adding it in a div instead... i figured it should be easier than it's turning out to be.. that's why i'm asking here. Thanks in advance my friends.