Hi....
I'm having a little trouble with a switch statement....
<?php
$location = "home"
switch ($location)
{
case "home":
include('includes/home.php');
case "about":
include('includes/about.php');
}
?>
when I upload this to my server to test it, I recive an error in my browser telling me that there is a parse error on the "switch ($location)" line. Is there anything notably wrong with my syntax that you can see ? ? ?
I have made sure that the file that the code is in has a .php extension and have tried different names for the variable incase that was the problem.
Any help would be appreciated.
Thanks!