This forum is now read-only. Please use our new forums at discuss.codecademy.com.

While Loops in PHP Forum

View Course » View Exercise

773 points
5523b1c976b8fea301000585_229199369
Submitted by
Jérémy Vinceno
about 2 years ago

Stuck with message "Have you forget a semicolon?"

Hi,

here is my code :

<!DOCTYPE html>
<html>
    <head>
        <title>Une boucle do-while</title>
    </head>
<body>
<?php
$condition = false;
do {
    echo "<p>La boucle est exécutée une fois alors que la condition est fausse.</p>";
} while ($condition);       
echo "<p>Maintenant on est sorti de la boucle.</p>";
?>
</body>
</html>

I keep getting an error message which says "Have you forget a semicolon after the text you want to show?"

I don't know what to do.


1 vote

permalink

I found the solution. There's a bug in the french version of the exercise.

773 points
5523b1c976b8fea301000585_229199369
Submitted by
Jérémy Vinceno
about 2 years ago