A parse error in a piece of computer code, also known as a syntax error, prevents your program from compiling. Parse errors happen when the code you've. A parse error: syntax error, unexpected appears when the PHP interpreter detects a missing element. Most of the time, it is caused by a missing. Some times the parser can not say the line where is the error. In your case the parser is looking for the close } of the while sentence.