Beginner >>>EOD problem
Posted: Tue May 02, 2006 7:56 pm
feyd | Please use
and here is my error:
Parse error: syntax error, unexpected $end in /home/public_html/php/table1.php on line 17
any help would appreciated
thank you,
joe
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Good evening everyone.
I' just learing PHP and I've stumbled on a problem I can't resolve.
here is the code:Code: Select all
<?php
$table=<<<EOD
<h2><center>Movie Review Database</center></h2>
<table width='70' border='1' cellpadding='2'
cellspacing='2' align='center'>
<tr>
<th>Movie Title</th>
<th>Year of Release</th>
<th>Movie Director</th>
<th>Movie Lead Actor</th>
<th>Movie Type</th>
</tr>
</table>
EOD;
echo $table;
?>and here is my error:
Parse error: syntax error, unexpected $end in /home/public_html/php/table1.php on line 17
any help would appreciated
thank you,
joe
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]