When yo uinstall XAMPP, buy defualt it has a setting deisabled with is the display_errors setting. This can be set in php.ini file. Just open you php.ini file and find the following lines:
; server, your database schema or other information.
display_errors = Off
Now just change Off to On.
Now just save your php.ini file and restart Apache you should now get error messages if there are any errors with your code.