jesushax Posted June 16, 2008 Share Posted June 16, 2008 as above what im trying to do is say My filed RecordType has 3 possiblities in it Type 1 all records under type one would have font color green Type 2 all records under type one would have font color blue Type 3 all records under type one would have font color yellow how could i do this? if statement? Link to comment https://forums.phpfreaks.com/topic/110440-adding-styles-for-record-conditions/ Share on other sites More sharing options...
rhodesa Posted June 16, 2008 Share Posted June 16, 2008 or a CSS class <style type="text/css"> span.rtype_1 { color: green; } span.rtype_2 { color: blue; } span.rtype_3 { color: yellow; } </style> <?php echo "<span class=\"rtype_{$type}\">{$text}</span>"; ?> Link to comment https://forums.phpfreaks.com/topic/110440-adding-styles-for-record-conditions/#findComment-566624 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.