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