CODE
<?php
//shoot da shit (function crap...go away)
function default() {
include_once('c:\apache\htdocs\cb\cbv40\default.php');
}
function affiliate() {
include_once('c:\apache\htdocs\cb\include_onces\affiliate.php');
}
function downloads() {
include_once('c:\apache\htdocs\cb\include_onces\download.php');
}
funtion games() {
include_once('c:\apache\htdocs\cb\include_onces\games.php');
}
function contact() {
include_once('c:\apache\htdocs\cb\include_onces\contact.php');
}
//end function crap....you can come back now
//ooh....cases and breaks and switches...can I press the button?
switch($p); {
case "affiliate":
affiliate();
break;
case "downloads":
downloads();
break;
case "games":
games();
break;
case "contact":
contact();
break;
default:
default();
break;
}
?>
In that small sniplet of code, I get the following error:
QUOTE
Parse error: parse error, expecting `T_STRING' in c:\apache\htdocs\cb\nextgen\index.php on line 4
I can't find anything wrong, please help!
Yes, I am running the script locally