Relative Content

Tag Archive for phpbackground-color

Applying background color to single cell based on php value

I am relatively new to php and cannot figure out why the background-color value is being applied to all cells rather than just the one. My “Admin Page” is able to save a value called ‘color’ in SESSION. I then use that value and echo it to select the appropriate color based on the button I selected [Red/red, Yellow/yellow, etc]. However when I select a color, it applies that same color to all cells within the ‘Ref’ column.