Result Won't Load in Exercise 7


I'm in the last exercise to make my own loop, the result isn't showing nor allwing my to submit. It hasn't given any kind of error message that I've created an infinite loop either.

$roll = rand(1,6);
        do {
            echo"<p>You rolled a {$roll}</p>";
        } while($roll != 6);


Be sure this line is inside the loop body so it changes with each iteration.


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