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

Posted by Michael Fesser on 09/26/75 12:01

..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

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