Re: Wanting to better understand
| From: | Paul Nicholson | Date: | Wed, 02 Oct 2002 03:18:15 +0000 |
| Subject: | Re: Wanting to better understand | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-118514@lists.php.net to get a copy of this message | ||
-----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!"
paul@webpowerdesign.net
"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-----