I have a script that 'cycles' through my database and retrieves records based on user login data. Some of the records are marked 'inactive' but display anyway. I want these records to display but a different color 'inactive = red' the rest = black but can't seem to figure out a way to do so.
I have a statement in there right now that says
$font = ($a_row[activity] == 0) ? 'Red' : 'Black';
but that changes the whole table Red not just the records with activity '0'.
is there any other way to do this? I'm open to suggestions 🙂