Re: [PHP-DB] HTML tags destory formatting?

2001-07-23 Thread Geoffrey Makstutis
Thanks for the response, but that is exaclty what I am doing. Here's an example: I input the following into a varchar field: This is the first line of text. This is the second line of text. This is some text with a link This is the next line. This is the last line.

Re: [PHP-DB] HTML tags destory formatting?

2001-07-23 Thread Sandis Jerics
There are two cases possible: 1. Store already HTML-formatted text in db. Then you do nothing before sending it to the screen; never use nl2br() here! 2. Store plain text, may be with a simpliest tags like b, i, u, ol, ul, li, a, img. Then put it through the nl2br() function before outp

[PHP-DB] HTML tags destory formatting?

2001-07-23 Thread Geoffrey Makstutis
Hi, I'm getting a problem when I pull text from a mySQL database. The text is froma varchar field and contains some HTML tags. New lines are translated to , but when the field is outputted, anything coming after an HTML tag loses its formatting (ie. no line breaks converted to ). Can anyone s