Php lesson 3 and 4........your first while loop,,,,,,,end while,,,,,


#1

So reading the forums i am curious if my code is right or if its faulty programming by codeacademy......

<!DOCTYPE html>
<html>
    <head>
		<title>A loop of your own</title>
        <link type='text/css' rel='stylesheet' href='style.css'/>
	</head>
	<body>
    <?php
	//Add while loop below
    $condition = true;
    while($condition):
        echo "<p>still true</p>";
        $condition = false;
    endwhile;
    ?>
    </body>
</html>


#2

i tried to make the simplest while loop i could and it just throws me into an infiniti loop


#3

try after refresh/reload your browser :slight_smile:


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.