Lesson 3. Your First While Loop - Crashing on start


#1

Hello there!
I used a wrong code, but every time I refresh or undo it, won't help. The little window in the right section won't show up on start. Here are 2 screenshots, and a code below. I try to submite my code, still no help. Can anybody help me please?

My code:

<!DOCTYPE html>
<html>
    <head>
        <title>A loop of your own</title>
        <link type='text/css' rel='stylesheet' href='style.css'/>
    </head>
    <body>
        <?php
           $loopCount = 0;
            while ($loopCount < 4):
                echo "<p>Iteration number: {$loopCount}</p>";
                $loopCount ++;
            } 
        ?>
    </body>
</html>

#2
The code in the picture you look different(and infinite) from the raw code you have posted here

Anyways you have an error in your syntax for the raw code you posted

        <?php
           $loopCount = 0;
		   while ($loopCount < 4){ //cannot be ':'
                echo "<p>Iteration number: {$loopCount}</p>";
                $loopCount ++;
            } 
        ?>

if the interpreter does not automatically run then reset the code and re-paste it


#3

I managed to repair that syntax error ":". However, the little window in the right corner didn't respond. Finaly, I fixed the problem. I'm not sure, but I think what helped is, that I opened the lesson in another browser, and the little window in the right corner worked properly this time, and accepted the code you fixed for me.
Thank you very much!

Regards,
akos