• Hi,

    I’m getting a message saying “syntax error, unexpected T_ENDWHILE” but I’ve been over the code a thousand times and I just can’t find where I have any mismatched whiles or ifs. It’s coming from my page.php but as far as I can tell, all my ifs and whiles are properly closed!!! PLEASE HELP ME!!!

    Thx. Here’s the code:

    [Code moderated as per the Forum Rules. Please use the pastebin]

Viewing 1 replies (of 1 total)
  • In my case the issue was with php code surrounded by <? ?> instead of <?php ?>. When I changed the surrounding escape markers with the latter ones everything started working correctly.

Viewing 1 replies (of 1 total)

The topic ‘Weird ENDWHILE Parse Error’ is closed to new replies.