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

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация