Hello,
I am trying to pull a user selected color from a database and use it in my td tag to change the background color of the cell. This is used on a calendar. I want the user to be able to color code events. The string being stored currently is in the format of #6699FF and I can pull it from the database just fine outside of the td tag. When i try to use it in the td tag such as:
<cfoutput><td bgcolor="#colorpick#">blah blah</td></cfoutput>
I have also tried <td bgcolor="##colorpick#> AND
<td bgcolor ='#"#colorpick#"'>
I know this is probably simple but if someone could help me it would be a big help. Thanks
I am trying to pull a user selected color from a database and use it in my td tag to change the background color of the cell. This is used on a calendar. I want the user to be able to color code events. The string being stored currently is in the format of #6699FF and I can pull it from the database just fine outside of the td tag. When i try to use it in the td tag such as:
<cfoutput><td bgcolor="#colorpick#">blah blah</td></cfoutput>
I have also tried <td bgcolor="##colorpick#> AND
<td bgcolor ='#"#colorpick#"'>
I know this is probably simple but if someone could help me it would be a big help. Thanks