Im going mad. I am making a new section for my webbie. I am using as the base start myphpnuke so hopefully some of you may know the answer to this.
I am using a switch to display the contents of the page requested. But for some reason the include files are nmot being included. Here is a little cut snippet for you to see
<?PHP
include("extention.inc");
if (!IsSet($mainfile)) { include ("mainfile.$phpEx");}
function warshome() {
include("header.$phpEx");
echo "Hello this is Default Page<br>"
."Select to see more<a href=/wars.php?func=one>fixtures</a>";
include("footer.$phpEx");
}
function viewallfixtures() {
include("header.$phpEx");
echo "Hello go back to war home page<a href=/wars.php>here</a>";
include("footer.$phpEx");
}
switch($func) {
default:
warshome();
break;
case "one":
viewallfixtures();
break;
}
?>
Can you point me in the right direction anyone please ?
Thanks beforehand if you can resolve this