Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php]Parse error:syntax error, unexpected T_STRING
maf2
post 6.02.2007, 22:06:56
Post #1





Grupa: Zarejestrowani
Postów: 25
Pomógł: 0
Dołączył: 6.02.2007
Skąd: Katowice

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


Witam
Z książki z której się uczę jest kod:
  1. <html>
  2.  
  3. <body>
  4.  
  5. <table border="0" cellpading="3">
  6.  
  7. <tr>
  8.  
  9. <td bgcolor = "#CCCCCC" align="center">Odległoœć</td>
  10.  
  11. <td bgcolor = "#CCCCCC" align="center">Koszt</td>
  12.  
  13. </tr>
  14.  
  15. <?php
  16.  
  17. $odleglosc = 50;
  18.  
  19. while ($odleglosc <= 250 )
  20.  
  21. {
  22.  
  23. echo "<tr>n <td align="right">$odleglosc</td>n";
  24.  
  25. echo " <td align="right">". $odleglosc / 10 ."</td>n</tr>n";
  26.  
  27. $odleglosc += 50;
  28.  
  29. }
  30.  
  31. ?>
  32.  
  33. </table>
  34.  
  35. </body>
  36.  
  37. </html>

Niestety przeglądarka wyrzuca:
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /var/www/transport.php on line 12

Nie wiem w czym problem. Kod wydaje mi się poprawny ale pewnie czegoś nie zauważyłem. Proszę o pomoc.

Ten post edytował maf2 6.02.2007, 22:12:07
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 Wersja Lo-Fi Aktualny czas: 14.08.2025 - 00:51