Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [PHP]Parse error: syntax error, unexpected '<', błąd blocku
--Michał--
post
Post #1





Goście







Witam
Mam problem ze wstawieniem kodu do nowego blocku.Block dziala bez problemu ale po wstawieniu kodu na stronie wyswietla sie bląd:
  1. Parse error: syntax error, unexpected '<' in /public_html/blocks/facebook_block.php on line 5


  1. <?php
  2. block_begin("Facebook");
  3.  
  4.  
  5. <iframe src="//www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2xxxxxxx&amp;width=200&amp;height=290&amp;colorscheme=dark&amp;show_faces=true&amp;border_color&amp;stream=false&amp;header=true" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:200px; height:290px;" allowTransparency="true"></iframe>
  6.  
  7.  
  8. block_end();
  9. ?>
Go to the top of the page
+Quote Post
Evinek
post
Post #2





Grupa: Zarejestrowani
Postów: 280
Pomógł: 46
Dołączył: 23.03.2010

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


  1. <?php
  2. block_begin("Facebook");
  3.  
  4. ?>
  5. <iframe src="//www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2xxxxxxx&amp;width=200&amp;height=290&amp;colorscheme=dark&amp;show_faces=true&amp;border_color&amp;stream=false&amp;header=true" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:200px; height:290px;" allowTransparency="true"></iframe>
  6. <?php
  7.  
  8. block_end();
  9. ?>


Kodu HTML nie daje się luzem do kodu PHP. Dajesz w echo albo poza znaczniki PHP(jak wyżej podałem).
Go to the top of the page
+Quote Post
--Michal--
post
Post #3





Goście







Dziekuje, działa (IMG:style_emoticons/default/smile.gif)
Go to the top of the page
+Quote Post

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

 



RSS Aktualny czas: 23.08.2025 - 09:47