05-10-2006, 08:51 AM
|
#3 (permalink)
|
| Newb Techie
Join Date: Apr 2006
Posts: 10
| Quote: Originally posted by csamuels if a = 1 it displays a
then it evaluates the second if else
so since a is not 0, it echo's b
to prevent b from being displayed, put a else after echo a. Code: <? if ($a == 1)
echo "a";
else {
if ($a == 0)
echo "";
else
echo "b";
}
?> | Ah... Thanks :) |
| |