Stuck in this 6.lesson


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>
		<title>Your First PHP while loop!</title>
	$loopCond = true;
	echo"<p>The loop is running.</p>"
	$loopCond = false;
	echo "<p>And now it's done.</p>";

Hi, my code isnt working

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.


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


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