Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> problem z echo
Tsiru
post
Post #1





Grupa: Zarejestrowani
Postów: 213
Pomógł: 0
Dołączył: 7.01.2005
Skąd: Nigdzie

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


Witam !
Może wiecie czemu, jeżeli napisze coś takiego;
  1. <?php
  2. $id = 5;
  3. echo('<a href=\"index.php?id='. $id - 1 .'\">poprzedni</a><br />');
  4. echo('<a href=\"index.php?id='. $id + 1 .'\">następny</a><br />');
  5. ?>

Wychodzi takie coś:
  1. -1">poprzedni</a><br />1">następny</a><br />
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
harryk
post
Post #2





Grupa: Zarejestrowani
Postów: 16
Pomógł: 0
Dołączył: 20.04.2005

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


  1. <?php
  2. $id = 5;
  3. echo('<a href=\"index.php?id='. ($id - 1) .'\">poprzedni</a><br />');
  4. echo('<a href=\"index.php?id='. ($id + 1) .'\">następny</a><br />');
  5. ?>
Go to the top of the page
+Quote Post

Posty w temacie


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: 5.10.2025 - 18:15