Concord Dawn
Veteran Member
This is a loopy fruit.
Posts: 1203 Reputation: 16
34 / / –
Joined: Feb 2004
|
RE: php doubt(i'm still a noob don't worry LOL)
quote: Originally posted by johny
i'll try that one later thank you =)...
anyway i was trying another one..proley it's really full of errors but can anyone tell me whats wrong here? :
<?php
$a = 1
$b = 5
if ($a > $b) {
echo "A is bigger B";
} elseif ($a == $b) {
echo "A is as big as B";
} else {$a < $b) {
echo "A is smaller then B";
}
?>
It should be this:
code:
<?php
$a = 1
$b = 5
if ($a > $b) {
echo "A is bigger B";
elseif ($a == $b) {
echo "A is as big as B";
else {$a < $b) {
echo "A is smaller then B";
}
?>
|
|