I am following The book \"Beginning PHP, Apache, MySQL web development\" by Wrox. I have been following it verbatim and for some reason I am having a issue with the code. The ed
Closing heredoc statement must be at the very first position in the string:
ENDHTML; // works
ENDHTML; // won’t work
When you end an heredoc you must not put any char at the begining of the line. In your code there are heredocs with spaces or tabs before them. Delete the spaces and put your heredoc at the begining of the line.