Skip to main content
Participant
July 30, 2007
Question

According to data change cell background color and insert image

  • July 30, 2007
  • 1 reply
  • 279 views
I want create page that can change table cell color according to recordset value. For example current field value is 1 then i want
this cell's background color is blue.If value is 2 then background is red.
This topic has been closed for replies.

1 reply

Inspiring
July 30, 2007
td.special { background-color:<? echo (value==1)?'blue':'red'; ?>; }

This would do that in PHP for this cell -

<td class="special">

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"Oraclelite" <webforumsuser@macromedia.com> wrote in message
news:f8jtpn$s35$1@forums.macromedia.com...
>I want create page that can change table cell color according to recordset
> value. For example current field value is 1 then i want
> this cell's background color is blue.If value is 2 then background is red.
>