This forum is now read-only. Please use our new forums! Go to forums
what is the error in this code
<!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
"<p>The loop is running.</p>"
$loopCond = false;
}
echo "<p>And now it's done.</p>";
?>
</body>
</html>
Oops, try again. expected p:first-child text to be equal to The loop is running. but got
Answer 5548b76e86f552617000001a
0 votes
echo missing before “
The loop is running.
“ and a semicolon missing??Popular free courses
- Free Course
Learn SQL
In this SQL course, you'll learn how to manage large datasets and analyze real data using the standard data management language.Beginner friendly,4 LessonsLanguage Fluency - Free Course
Learn JavaScript
Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.Beginner friendly,11 LessonsLanguage Fluency - Free Course
Learn HTML
Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.Beginner friendly,6 LessonsLanguage Fluency