Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [SQL][PHP]Pobiera tekst bez enterów
tenloginjestzaje...
post
Post #1





Grupa: Zarejestrowani
Postów: 358
Pomógł: 1
Dołączył: 20.07.2014

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


Witam mam problem, ponieważ dodaje tekst do bazy z enterami poprzez formularz. W bazie wygląda to tak:

  1. - tekst 1
  2. - tekst 2
  3.  
  4. treść tekstu.
  5.  


Natomiast pobrany tekst jest bez enterów. Dzięki za pomoc
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 4)
Turson
post
Post #2





Grupa: Zarejestrowani
Postów: 4 291
Pomógł: 829
Dołączył: 14.02.2009
Skąd: łódź

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


nl2br
Go to the top of the page
+Quote Post
trueblue
post
Post #3





Grupa: Zarejestrowani
Postów: 6 806
Pomógł: 1828
Dołączył: 11.03.2014

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


CSS: white-space: pre-line;
Zaoszczędzisz <br/>
Go to the top of the page
+Quote Post
com
post
Post #4





Grupa: Zarejestrowani
Postów: 3 034
Pomógł: 366
Dołączył: 24.05.2012

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


Dopiero co taki temat byl, szukajka jest od tego (IMG:style_emoticons/default/smile.gif)

http://forum.php.pl/index.php?showtopic=240788&hl=
Go to the top of the page
+Quote Post
Neymar11
post
Post #5





Grupa: Zarejestrowani
Postów: 73
Pomógł: 0
Dołączył: 20.02.2015
Skąd: localhost

Ostrzeżenie: (10%)
X----


W bazie rób coś takiego:
  1. coś<br />coś<br/>lubiecie</br>


tutaj enterem jest <br />

  1. cos"/n"cos"/n"lubiecie"/n"


a tutaj enterem jest "/n"
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: 2.10.2025 - 19:46