as someone mentioned, it has something to do with the PHP.INI configuration.
I had the same issue.
when you code, if your code starts with <? codehere instead of <?php you need to edit the PHP.INI file.
If you have the wamp spedometer open at the bottom, click on there once and go to config files. Click on the PHP.INI menu option.
Go down to short_open_tag on line 81
If it is set to Off
Forum:
WampServer English