Chuck,
I'm not sure what you're trying to do, but I think you might just want
to order it the other way around.
if ($days > "45")
{
# $days is 46 or more
do stuff
}
elseif ($days > "30")
{
# $days is 31-45
do other stuff;
}
else
{
# $days is 30 or less
more stuff;
}
Also, be careful about overwriting $days with that long string and then
trying to compare it to a numeric value. You probably want to use a
different variable name for the string.
Happy hacking.
Chris
Chuck \"PUP\" Payne wrote:
>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.
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php