I'm using the following code to produce a index.php?p=contact style thingy. Here is my code, then I try to run index.php?p=contact i get the following error.
Quote
Parse error: parse error, unexpected T_VARIABLE, expecting '(' in c:\program files\easyphp1-7\www\czeg\index.php on line 2
my code:
<?php
switch $_GET['p']
{
case "login":
include('login.php');
break;
case "news":
include('news.php');
break;
case "pilots":
include('pilots.php');
break;
default:
include('main.php');
}
?>
Could somebody please help!
This post has been edited by aswettla: 14 April 2005 - 04:08 PM

New Topic/Question
Reply




MultiQuote




|