This forum is now read-only. Please use our new forums! Go to forums

banner
Close banner
0 points
Submitted by Akshay Sharma
over 8 years

Why wont this code is not working?

Answer 55fae64c86f552f02b00063c

0 votes

Permalink

In what would be considered line 2 or $items = 3; should be $items == 3;. Double equal signs, ==, is the equal to operator.

points
Submitted by Dominic N.
over 8 years

Answer 56029c2751b887f60d00005e

0 votes

Permalink

Uppercases are important here! My Code:

 else {
     echo "You get a 5% discount!";
 }

Your Code:

 else {
     echo "you got 5% discount!";   
    }

The You is the Mistake

BR D.

points
Submitted by Codmakr
over 8 years