Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Funkcja EOD, problem
saperek25
post
Post #1





Grupa: Zarejestrowani
Postów: 52
Pomógł: 0
Dołączył: 1.11.2009
Skąd: Bytom

Ostrzeżenie: (0%)
-----


Mam problem z funkcją EOD. Oto przykładowy kod:

  1. <?php
  2.  
  3. $movie=<<<EOD
  4. <h2><center>Baza danych recenzji filmów</center></h2>
  5. <table width="70%" border="1" cellpadding="2" cellspacing="2" align="center">
  6. <tr>
  7. <th>Tytuł filmu</th>
  8. <th>Rok produkcji</th>
  9. <th>Reżyser</th>
  10. <th>Główny aktor</th>
  11. <th>Gatunek</th>
  12. </tr>
  13. </table>
  14. EOD:
  15.  
  16. echo $movie;
  17.  
  18. ?>


wyskakuje błąd


Parse error: syntax error, unexpected $end in C:\xampp\htdocs\tabel1.php on line 18
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 22.08.2025 - 01:29