Stuck on Excercize "While Loop Syntax" in "While Loops in PHP"


#1

My name is Oren and I'm learning web development on my own.

I'm stuck on the exercise "While Loop Syntax" in the PHP lesson "While Loops in PHP." Whenever I click on 'Save & Submit Code' , this button loses it's text and nothing else happens. My code isn't approved, nor do I get an error message. I've encountered this bug in many other PHP labs as well. Usually I could get fix it by resetting the code or refreshing the page. However it's impossible to move past this lab.

How do I proceed?


#2

i have the same problem.


#3

I used this code:

<?php
$loopCond = true;
while ($loopCond){
//Echo your message that the loop is running below
echo "

The loop is running.

";
$loopCond = false;
}
echo "And now it's done.";
?>

#4
<?php
$loopCond = true;
while ($loopCond){
	//Echo your message that the loop is running below
	echo "<p>The loop is running.</p>";
	$loopCond = false;
}
echo "<p>And now it's done.</p>";
?>