for ($i = 0; $i < count($cast); $i++) { echo '<tr><td width=200>'; echo "<a href='person.php?mid=" . $cast[$i]["imdb"] . "'>"; echo $cast[$i]["name"] . '</a></td><td>'; echo $cast[$i]["role"] . "</td></tr>"; } echo "</table></td></tr>\n"; } flush(); # Plot outline & plot $plotoutline = $movie->plotoutline(); if (!empty($plotoutline)) { ++$rows; echo "<tr><td valign='top'><b>Plot Outline:</b></td><td>{$plotoutline}</td></tr>\n"; } $plot = $movie->plot(); if (!empty($plot)) { ++$rows; echo '<tr><td valign=top><b>Plot:</b></td><td><ul>'; for ($i = 0; $i < count($plot); $i++) { echo "<li>" . $plot[$i] . "</li>\n"; } echo "</ul></td></tr>\n"; } flush(); # Taglines $taglines = $movie->taglines(); if (!empty($taglines)) { ++$rows; echo '<tr><td valign=top><b>Taglines:</b></td><td><ul>'; for ($i = 0; $i < count($taglines); $i++) {