[solved]6.6 Do {} while () ; problem of ;


#1

Hello

I can't find my mistake in the code below, the exercise need to place {} () and ; (but they were already at their place when I started the exercise), I tried with or without spaces, F5, to close and restart my Firefox (49.0, for Ubuntu), in the default browser and in Vivaldi, but I always have the message "Oups, merci de réessayer. Avez-vous ajouté un point-virgule après le texte à afficher ?" (so a ; problem, but I can't find where it's missing ç__ç)


https://www.codecademy.com/fr/courses/web-beginner-fr-FR-gkc3z/0/6?curriculum_id=53710371fed2a8c7e9000001

<!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>

Thank you for help :slight_smile:

Edit : solution found here : https://discuss.codecademy.com/t/erreur-dans-lexercice-6-les-boucles-while-en-php/820/27
Sorry for the unuseful post, can't find where to delete it.


#2

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.