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
[Back to original message]
|