I get a parse error on the first line 4:
<?php
include("header.php");
if($x=="about"){
include("about.php");
}
elseif($x=="services"){
include("services.php");
}
elseif($x=="property"){
include("property.php");
}
elseif($x=="events"){
include("events.php");
}
else{
include("main.php");
}
include("footer.php");
?>