View Single Post
Old 12-27-2012, 03:55 PM   PM User | #1
Angiec
New Coder

 
Join Date: Apr 2012
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Angiec is an unknown quantity at this point
Parse error- can anyone find the issue?

The error is on this page: http://dstone1029.net/box-office-analyst-dev/

Can anyone tell me what's wrong with the corresponding code below? Thanks for any help you can offer!
Code:
<p>
	&nbsp;
</p>
<p><!-- Import and render trailer links {{{-->
	<?php>
print <<< HERE
<table width="100%" class="table1">
<tr>
<th id="mythead" style="text-align:left; font-size:12px;">Film Title </th>
<th id="mythead" style="text-align:left; font-size:12px;">Release Date</th>
</tr>
<p>HERE;</p>
<p>$data = file("http://dstone1029.net/textuploads/trailers.txt");
foreach ($data as $line){
  $lineArray = explode("|", $line);</p>
<p> list($moviename, $releasedate, $trailerlink) = $lineArray;
  print <<< HERE
<tr>
<td id="leftcell" style="color:#0000ff; font-size:12px;"> <a style="color:#0000ff;" href="$trailerlink" target="youtube">$moviename</a></td>
<td id="leftcell" style="font-size:12px;">$releasedate</td>
</tr>
<p>HERE;
} // end foreach</p>
<p>//print the bottom of the table
print "</table>
<p> \n";</p>
<p>?><!-- Trailer links rendering end }}}-->
</p>
Angiec is offline   Reply With Quote