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

0 points
Submitted by Zeinab Roshdy
almost 9 years

what is the error in this code

<!DOCTYPE html>
<html>
    <head>
        <title>Your First PHP while loop!</title>
    </head>
    <body>
    <?php
    $loopCond = true;
    while ($loopCond == true){
        //Echo your message that the loop is running below
            "<p>The loop is running.</p>"
            $loopCond = false;
    }
    echo "<p>And now it's done.</p>";
    ?>
    </body>
</html>  

Oops, try again. expected p:first-child text to be equal to The loop is running. but got

Answer 5548b76e86f552617000001a

0 votes

Permalink

echo missing before “

The loop is running.

“ and a semicolon missing??

points
Submitted by Remko Sieben
almost 9 years

Answer 55524b2c51b88759a600002c

0 votes

Permalink

Mb u need echo “

The loop is running.

“;

points
Submitted by BaByN
almost 9 years