I have four files. (1) example.php (2) file1.php (3) file2.php (4) example2.php
This file example2.php works fine. It works fine.
But, when if else code is written into separate files and is included on top and bottom of the document, it does not work and throw error "syntax error, unexpected end of file".
example.php is the file with includes
Include files are
Please suggest what is the problem, I did not find any answer regarding this.