This topic is locked

font color based on table value

10/10/2005 8:50:17 AM
PHPRunner General questions
K
keithh0427 author

Hi again,
Is there a way to change the font color in the list to be greyed-out depending on a value in the table.
I have a cancelled date within the table that I would like to determine whether a row in the list is either black (default) or not. IF there is anything in the field then the test is true. Othewise, false.
Is this possible?
thanks.

admin 10/11/2005

Hi,
find loopRsfunction in ..._list.php file.

Modify <TD> tag related to your field in the following way:
<TD <?php if($data["cancelled_date"]<>"") echo " bgcolor=red ";?>>