I am about to give up. I only get blank pages in this ¤&()"¤& chapter both when I write my own code and when I try to download the code. I've checked the erata and many posts at P2P.
My code is below and it corresponds with the book page 114-115.
I really wonder if just an end-tag for the table is missing </table>. Have tried to place it in various posistions with no succes.
I have no blanks, tabs or anything else after the =<<<EOD and the EOD;
Uh, I would be happy if someone can look through this

I'm just a newbee to it all
<?php
$link = mysql_connect ("localhost", "root", "XXXXX")
or die(mysql_error());
mysql_select_db ("moviesite")
or die(mysql_error());
$query = "SELECT movie_name, movie_director, movie_leadactor " .
"FROM movie";
$result = mysql_query($query, $link)
or die(mysql_error());
$num_movies = mysql_num_rows($result);
$movie_header=<<<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>
</tr>
EOD;
$movie_details = '';
while ($row = mysql_fetch_array($result)) {
$movie_name = $row['movie_name'];
$movie_director = $row['movie_director'];
$movie_leadactor = $row['movie_leadactor'];
$movie_details .=<<<EOD
<tr>
<td>$movie_name</td>
<td>$movie_director</td>
<td>$movie_leadactor</td>
</tr>
EOD;
}
$movie_details .=<<<EOD
<tr>
<td> </td>
</tr>
<tr>
<td>Total :$num_movies Movies</td>
</tr>
EOD;
?>
Hanne - Denmark