I am trying to get my personal site coded through PHP navigation, but I get this error:
Parse error: parse error, unexpected T_SWITCH
This is the code that I am using:
Can someone please help me?
Parse error: parse error, unexpected T_SWITCH
This is the code that I am using:
PHP:
<? php
switch($page){ // where it says $page you can have whatever you want e.g $p or $pid
default:
include('index.php'); // This is the default page that you want users to see
break; // Ends the default page
/* case "other_page": change what's inside the quotes to whatever your page will be called */
case "girl":
include('girl.php'); // Your other pages use this method.
break;
case "boy":
include('boy.php');
break;
case "site":
include('site.php');
break;
case "other":
include('other.php');
break;
case "poems":
include('poems.php');
break;
case "exit":
include('exit.php');
break;
case "host":
include('host.php');
break;
}
?>
Can someone please help me?