Stuck in this 6.lesson


#1

Hello!I stuck in this 6.lesson,Whats wrong with my code?Shows me erorr:Parse error: syntax error, unexpected T_VARIABLE, expecting ',' or ';' on line 12

<!DOCTYPE html>
<html>
    <head>
		<title>Your First PHP while loop!</title>
	</head>
	<body>
    <?php
	$loopCond = true;
while($LoopCond==true);{
	echo"<p>The loop is running.</p>"
		
	$loopCond = false;
	}
	echo "<p>And now it's done.</p>";
    ?>
    </body>
</html>

Hi, my code isnt working
#2

That error jumps right out.

This one also... Missing ; at end of statement.

PHP is not forgiving the way JavaScript can be. It does not attempt to insert semi-colons at the end of statements, and instead raises an error. Drill that in so it becomes second nature to always check the end of statements.


#3

Thank you a lot!You save me,and I fix that.


#4

A post was split to a new topic: Code note working.what is wrong


#7