2. While Loop Syntax


#1

It keeps saying that I haven't filled in my while loop properly when I try to save and submit. Can't see where I'm going wrong.

<!DOCTYPE html>
<html>
    <head>
		<title>Your First PHP while loop!</title>
	</head>
	<body>
    <?php
	$loopCond = true;
	while ($loopcond == true){
		//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>";
    ?>
    </body>
</html>

#2

In your while , you wrote $loopcond instead of $loopCond