Parse error: syntax error, unexpected T_LNUMBER in C:\Program Files\thepath\movie_details.php on line 107
and this is the code (a little b4 and after the error location) with lines 107 highlighted :
$movie_health = calculate_differences($movie_takings, $movie_cost);
$page_start =
"<html>
<head>
<title>Details and Reviews for: $movie_name</title>
</head>
<body>
";
$movie_details =
"<table width="70%" border="0" cellspacing="2" cellpadding="2" align="center">
<tr> <th colspan="6"><u><h2>$movie_name: Details</h2></u></th>
</tr>
$movie_table_headings
<tr>
<td width="33%" align="center">$movie_name</td>
<td align="center">$movie_year</td>
<td align="center">$director</td>
<td align="center">$leadactor</td>
<td align="center">$movie_running_time</td>
<td align="center">$movie_health</td>
</tr>
</table>
<br>
<br>
";
Now, i have rechecked for typo errors 3 times - could it have to do with using " instead of HEREDOC? The tutorail scripts have been woking fine till this. Thanks for any help, it is greatly appreciated.
Code: Select all