-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hey,
ok, I'm not sure if I totally understand what you're trying to do but.....I'll give
it my best. Try:
switch (TRUE) {
     case ($days > 30):
            $days =  "<strong><font color='ff0000'>" . $days . "</font></strong>";
            break;
     case ($days > 45):
             $days = "<strong><font color='ff00ff'>" . $days . "</font></strong>";
            break;
}
or:
If ($days > 30) {
    $days = "<strong><font color='ff0000'>" . $days . "</font></strong>";
}elseif ($days > 45) {
    $days = "<strong><font color='ff00ff'>" . $days . "</font></strong>";
}
HTH!
~Pauly

On Tuesday 01 October 2002 10:50 pm, Chuck \"PUP\" Payne wrote:
> Hey,
>
> I am trying to better understand something, I learned a couple weeks ago
> that if I do this...
>
> If ($field == "value1") {
>     $field = "change to new value";
>
> Now I have use this to change 0000-00-00 to &nbsp;. And the following.
>
> If ($days > "30") {
>     $days "<strong><font color='ff0000'>" . $days . "</font></strong>";
> }
>
>
> Want I want to do was add a second line this below to change the another
> value to change to change to another color...
>
> If ($days > "45") {
>     $days "<strong><font color='ff00ff'>" . $days . "</font></strong>";
>
> }
>
> But, the second value is over riding the first vaule so I can't see the
> differents. I sorry that this might be confusing but I am trying to ask the
> way I can. I am not sure what you call this, expression I think. Any way is
> there a way that I can use this expression to get two or more colors.
>
> Thanks
>
> Chuck Payne
> Magi Design and Support

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
"The web....the way you want it!"
[EMAIL PROTECTED]

"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9mmNtDyXNIUN3+UQRAuPnAJ9rMhXkTfeLsxYy8MzO1BtxA1bUMgCfcmR4
MhMn3ihvEdecAxUcQt2S2U8=
=C4fu
-----END PGP SIGNATURE-----

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to