parse error in heredoc syntax
<pre><code>**&lt;?php

$db = mysql_connect("localhost","root","saw123") or die("Error connecting");
mysql_select_db("moviesite",$db) or die(mysql_error($db));

$query = "Select * from movie";
$result = mysql_query($query,$db) or die(mysql_error($db));


$table = &lt;&lt;&lt;ENDHTML 
&lt;div style ="text-align: center;"&gt;
&lt;h2&gt;Movie Review Site&lt;/h2&gt;
&lt;table border="1" cellpadding = "5"  cellspacing = "10"
 style = "width = 70%; ; margin-left: auto; margin-right: auto"&gt;

&lt;tr&gt;
&lt;th&gt;Movie number&lt;/th&gt;
&lt;th&gt;Movie Name&lt;/th&gt;
&lt;th&gt;Movie Rating&lt;/th&gt;
&lt;/tr&gt; 
ENDHTML;



while($row = mysql_fetch_assoc($result))
{

extract($row);

$table.= &lt;&lt;&lt;ENDHTML
&lt;tr&gt;
&lt;td&gt;$movieid&lt;/td&gt;
&lt;td&gt;$moviename&lt;/td&gt;
&lt;td&gt;$movierating&lt;/td&gt;
&lt;/tr&gt;
ENDHTML;
}

$table .= &lt;&lt;&lt;ENDHTML
&lt;/table&gt;
&lt;/div&gt;

ENDHTML;
echo $table;


?&gt;**
</code></pre>

<p>In this code i am getting this error  :   </p>

<p>[error] [client 127.0.0.1] PHP Parse error:  syntax error, unexpected '&lt;&lt;' (T_SL) in /var/www/dbtables.php on line 10</p>

<p>Why i am getting error in the line 10 ? I am using just a simple heredoc.</p>
