Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]Parse error: syntax error, unexpected T_STRING
Jarma
post
Post #1





Grupa: Zarejestrowani
Postów: 36
Pomógł: 11
Dołączył: 20.07.2009

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


Witam, mam problem ze skryptem php ...
Wyskakuje mi błąd :
Cytat
Parse error: syntax error, unexpected T_STRING in /home/accounts_j/jarma/public_html/index.php on line 69


Skrypt php:

  1. <?
  2.  
  3.  
  4. if (!empty($nazwa)){
  5.  
  6.  
  7. echo ('
  8.     <a href="konto.php"
  9.     onMouseOut="MM_swapImgRestore()" // Tutaj występuje błąd
  10.     onMouseOver="MM_swapImage('Image2','','images/b21b.gif',1);
  11.     MM_swapImage('Image2','','images/b22b.gif',1)">
  12.     <img src="images/b21b.gif" width="91" height="19" border="0" name="Image2">
  13.     </a>
  14. <br>
  15. ');
  16.  
  17. }else{
  18.  
  19. echo ('      
  20.     <a href="login.php"
  21.     onMouseOut="MM_swapImgRestore()"
  22.     onMouseOver="MM_swapImage('Image3','','images/b211a.gif',1);
  23.     MM_swapImage('Image3','','images/b212a.gif',1)">
  24.     <img src="images/b212a.gif" width="91" height="19" border="0" name="Image3"></a>
  25.     <br>
  26.     <a href="register.php"
  27.     onMouseOut="MM_swapImgRestore()"
  28.     onMouseOver="MM_swapImage('Image4','','images/b221a.gif',1);
  29.     MM_swapImage('Image4','','images/b222a.gif',1)">
  30.     <img src="images/b221a.gif" width="91" height="19" border="0" name="Image4"></a>
  31.     <br>
  32. ');
  33.  
  34. }
  35.  
  36. ?>


Z góry dziękuje za pomoc

Ten post edytował Jarma 20.07.2009, 19:47:07
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 4)
Pawel_W
post
Post #2





Grupa: Zarejestrowani
Postów: 1 675
Pomógł: 286
Dołączył: 15.06.2009
Skąd: Wieliczka

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


lol? co to ma być?
  1. echo ('
  2. <?
  3.  
  4.  
  5. if (!empty($nazwa)){
  6.  
  7.  
  8. ?>
Go to the top of the page
+Quote Post
ayeo
post
Post #3





Grupa: Przyjaciele php.pl
Postów: 1 202
Pomógł: 117
Dołączył: 13.04.2007
Skąd: 127.0.0.1

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


Witam!

Może podasz okolice miejsca gdzie występuje błąd?

Pozdrawiam!
Go to the top of the page
+Quote Post
Jarma
post
Post #4





Grupa: Zarejestrowani
Postów: 36
Pomógł: 11
Dołączył: 20.07.2009

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


wklejałem to dwa razy i się pomyliłem ... już poprawione
Go to the top of the page
+Quote Post
nospor
post
Post #5





Grupa: Moderatorzy
Postów: 36 557
Pomógł: 6315
Dołączył: 27.12.2004




przeczytaj sobie to kilka razy:
http://pl.php.net/manual/pl/language.types.string.php
masz tam napisane jak masz uzywac apostrofow w tekstach

kolejna sprawa: forum to nie parser. Zalatw sobie porzadny darmowy edytor (eclipse, netbeans, inne) ktory koloruje skladnie i podpowiada bledy. Nie bedziemy przeciez za ciebie tak banalnych bledow poprawiac
Go to the top of the page
+Quote Post

Closed TopicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 22.08.2025 - 16:59