-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 opps....I need those reversed. - ---- switch (TRUE) { case ($days > 45): $days = "<strong><font color='ff00ff'>" . $days . "</font></strong>"; break; case ($days > 30): $days = "<strong><font color='ff0000'>" . $days . "</font></strong>"; break; } - ---- If ($days > 45) { $days = "<strong><font color='ff0000'>" . $days . "</font></strong>"; }elseif ($days > 30) { $days = "<strong><font color='ff00ff'>" . $days . "</font></strong>"; } - ---- ~Paul
On Tuesday 01 October 2002 11:09 pm, Paul Nicholson wrote: > 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 - -- ~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 iD8DBQE9mmV5DyXNIUN3+UQRApoNAJ9CVpSw5QIHeBHS6uIOCaAXVnpQjgCdG1ye kVMaV+ecWgxC/CEVF2Zw4bs= =ncYb -----END PGP SIGNATURE----- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php