Menu
I know there’s got to be a way to do this… basically I want to color each <tr> on a table I am outputting simple db query. So in this case… I have a row called category and I want each of the six to kick out a different $row_color I put down some rough notes on what I thought might work??
Anyone have any ideas? My brain is in coast mode and I can’t figure it out… Many thanks to any direction at all!
if($row[‘category’] == “photography”){
$row_color = “FFCC66”;
}elseif{
and so on for the remaining 5….
am I way off?