both my editor and Wamp server complain about a parse error at line 8??
<html>
<head>
<title>My Movie Site - <?php echo $favmovie; ?></title>
</head>
<body>
<?php
//delete this line: define(“FAVMOVIE”, “The Life of Brian”);
echo “My favorite movie is “;
echo $favmovie;
echo “<br>”;
$movierate = 5;
echo “My movie rating for this movie is: “;
echo $movierate;
?>
</body>
</html>
This example comes from Beginning PHP5 Apache mysql from Wrox.
Where is the ERROR??
Compiler says:
Parsing Error: PHPDocument1 line 8 - syntax error, unexpected T_STRING, expecting ',' or ';'
<html>
<head>
<title>My Movie Site - <?php echo $favmovie; ?></title>
</head>
<body>
<?php
//delete this line: define(“FAVMOVIE”, “The Life of Brian”);
echo “My favorite movie is “;
echo $favmovie;
echo “<br>”;
$movierate = 5;
echo “My movie rating for this movie is: “;
echo $movierate;
?>
</body>
</html>
This example comes from Beginning PHP5 Apache mysql from Wrox.
Where is the ERROR??
Compiler says:
Parsing Error: PHPDocument1 line 8 - syntax error, unexpected T_STRING, expecting ',' or ';'