Parse error: unexpected T_ENDWHILE

Hi,

I’m a PHP newbie, and like a true newbie, i didn’t back up my code before i started screwing around with it. Needless to say, i broke my wordpress page, and i can’t fix it. Hoping to reach out to the community for some help with this.

ERROR: Parse error: syntax error, unexpected T_ENDWHILE
LINK: http://intherough.tv/golf-trivia/
CODE: [

 ITR Journal Code - Pastebin.com](http://pastebin.com/mzBZjXmA)

The reason i was messing with the code is that i'm trying to add an 'older post & newer post' link to the template. If anyone can include the code to do so in their solution that would be greatly appreciated.

Thanks so much in advance.

-Mike

Glancing over it quickly, I noticed that on on line 92, your endwhile statement needs a semicolon.

[edit]: Also, on line 114, your if-statement needs to be closed (with an endif;)

http://www.sitepoint.com/forums/php-34/common-php-problems-768872.html

YOU ARE MY HERO. Worked like a charm. Thanks so much!