You are here: Re: Text formatting « PHP Language « IT news, forums, messages
Re: Text formatting

Posted by Bill on 02/01/08 23:28

Thanks


"Michael Fesser" <netizen@gmx.de> a ιcrit dans le message de news:
474sp3t6glh2ga4pnlv1gldrh1o6t1tbh0@4ax.com...
> .oO(Bill)
>
>>A comment is stored in a mysql table under comment[text,NOTNULL] whose
>>collation is utf8_general_ci.
>>
>>Why if I retrieve the comment on the screen using PHP, newlines don't
>>print
>>but they do if I go directly into mysql and issue a request ?
>
> That's how HTML works. Have a look at the HTML source in the browser -
> your newlines are there. If you want them to appear on the page as line
> breaks, format your text into paragraphs or at least use <br> elements.
>
> Micha

 

Navigation:

[Reply to this message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация