<?php $query = "SELECT movie_name, movie_director, movie_leadactor FROM movie"; $movie_header=<<<EOD <h2><center>Baza danych recenzji filmów</center></h2> <table width="70%" border="1" cellpadding="2" cellspacing="2" align="center"> <tr> <th>Tyuł filmu</th> <th>Rok produkcji</th> <th>Reżyser</th> <th>Gatunek</th> </tr> </table> EOD; $movie_details = ''; $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>Łącznie filmów: $num_muvies</td> </tr> EOD; $moviefooter = "</table>"; $movie=<<<MOVIE $movie_header $movie_details $moviefooter MOVIE; ?>
i niestety wyświetla tabelę ilość filmó która wynosi 3 ale nie wyświetla nazw filmów roku itd.