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

0 points
Submitted by Martin Kuzma
about 11 years

bad code?

Hi, i got this error: “it looks like your code echoes 2091 instead of 2091 (17 * 123)”

my code below:

<!DOCTYPE html>

Answer 5135c01726bb8e3f71002a3e

6 votes

Permalink

I have got it working with the following code:

   <!DOCTYPE html>
<html>
    <head>
        <title></title>
    </head>
    <body>
        <!-- Include your PHP code between the <p></p> tags! -->
            <p><?php echo 17 * 123; ?></p>
    </body>
</html>

My error was similar to yours:

Oops, try again. It looks like your code echoes \n 2091 instead of 2091 (17 * 123).

The \n stands for line break. Rearranging the code so it is all on one line (i.e. the

and

points
Submitted by Matt
about 11 years

5 comments

Adnan Qader about 11 years

I hit the submit button 10 times and voila it worked lol

Andrea about 11 years

I got that \n error too. Put it all on one line and it worked, like you said. Thanks!

Jeroen Spee about 11 years

still not working for me

dima.p almost 11 years

THANKS

Abu-Bakr over 10 years

odd

Answer 5135a6caf1c968c9220020e3

1 vote

Permalink

Yeah I’m getting the exact same thing, not sure what it is probably a bug or something like you said

points
Submitted by kate.p
about 11 years

Answer 515c51a263ecdd911f000362

0 votes

Permalink

`

points
Submitted by ROODRADEV MUNGUR
almost 11 years