PHP works just not on Codecademy tested on


Problem with running my php script on while loop section

Here is the error

Parse error: syntax error, unexpected ';' on line 12

	//Add while loop below
    while($num < 10) {
        echo $num . '</br>'; //this is the concat of the break element(Comment not in code)


Kind of sad I wont be able to complete the course to 100%. If anyone can help please advise.



Figured it out all there was a error in the CSS code which was causing the code to hang

background color grey if you change to black before you write the php you will get a compile and you can move on.


Here is what I changed

.coin {
height: 50px;
width: 50px;
border-radius: 25px;
background-color: black; <----------- changed from grey to black.
text-align: center;
font-weight: bold;
font-family: sans-serif;
color: white;
margin: 10px;
display: inline-block;
line-height: 50px;
font-size: 20px;


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