parse error help
Posted: Sun Apr 12, 2009 10:45 pm
Hi everyone,
I'm a php newbie and am using a xampp and a book to learn php. Unfortunately while following the codes in the book, I kept getting parse error. I don't know why. Please check if you can see what's wrong with it. Thanks
This is the code for movierate.php
This is the code for movierate1.php
I'm a php newbie and am using a xampp and a book to learn php. Unfortunately while following the codes in the book, I kept getting parse error. I don't know why. Please check if you can see what's wrong with it. Thanks
This is the code for movierate.php
Code: Select all
<?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, you loser!”;
exit();
}
?>
<html>
<head>
<title>My Movie Site - <?php echo $_REQUEST[‘favmovie’]; ?></title>
</head>
<body>
<?php
echo “Welcome to our site, “;
echo $_SESSION[‘username’];
echo “! <br>”;
echo “My favorite movie is “;
echo $_REQUEST[‘favmovie’];
echo “<br>”;
$movierate = 5;
echo “My movie rating for this movie is: “;
echo $movierate;
?>
</body>
</html>
Code: Select all
<?php
session_start();
if ($_SESSION[‘authuser’] != 1) {
echo “Sorry, but you don’t have permission to view this page, you loser!”;
exit();
}
?>
<html>
<head>
<title>My Movie Site - <?php echo $_REQUEST[‘favmovie’]; ?></title>
</head>
<body>
<?php
echo “Welcome to our site, “;
echo $_SESSION[‘username’];
echo “! <br>”;
echo “My favorite movie is “;
echo $_REQUEST[‘favmovie’];
echo “<br>”;
$movierate = 5;
echo “My movie rating for this movie is: “;
echo $movierate;
?>
</body>
</html>