I have checked this stuff six ways from Sunday and can not find an error....can anyone help? My error message is this:
Parse error: syntax error, unexpected T_IF in C:\Program Files (x86)\Apache Software Foundation\Apac he2.2\htdocs\mo viesite.php on line 14
Parse error: syntax error, unexpected T_IF in C:\Program Files (x86)\Apache Software Foundation\Apac he2.2\htdocs\mo viesite.php on line 14
Code:
<?php
session_start();
//check to see if user has logged in with a valid password
if ($_SESSION['authuser'] != 1) {
echo 'Sorry, but you don\'t have permission to view this page!';
exit();
}
?>
<html>
<head>
<title>
<?php>
if (isset($_GET['favmovie'])) {
echo ' - ';
echo $_GET['favmovie'];
}
?>
</title>
</head>
<body>
<?php include 'header.php'; ?>
<?php
function listmovies_1() {
echo '1. Sound of Music<br/>';
echo '2. Wizard of Oz<br/>';
echo '3. Lord of the Rings Trilogy<br/>';
echo '4. Ten Commandments<br/>';
echo '5. Star Wars<br/>';
Comment