Re: [PHP-DB] Help with formating text from PHP

2003-08-14 Thread Andrew D. Luebke
Well, as one of the last posts said, if you are displaying in a web browser, via HTML, you need to insert br tags where you want the text to go to the next line. HTML doesn't respond to /r/n pairs. So if that is how the user types them in (with a enter key at the end of lines) you need to

Re: [PHP-DB] Help with formating text from PHP

2003-08-14 Thread Budelak
You guys thanks for the encouragement. I finally solved it with this: ?php $text= preg_replace(/(\015\012)|(\015)|(\012)/,nbsp;br /, $rsDailynewsDetail-Fields('newsfull')); echo $text; ? Help came of course from the link Holmes gave. Thanks. Budelak wrote: Yes. Itis with enter key. It will not

Re: [PHP-DB] Help with formating text from PHP

2003-08-14 Thread Budelak
Yes. Itis with enter key. It will not be possible to pre-determine the length as this field is supposed to be a news field. I'm lost as to how to go about this as the enter key does not generate chr(13) when saving. I'm really lost. Holmes directed me to http://us2.php.net/nl2br. I'm

Re: [PHP-DB] Help with formating text from PHP

2003-08-14 Thread John W. Holmes
Budelak wrote: Hello, Can someone help with this problem I've been trying to solve but don't how to. I have a field of type longtext that contains text with paragraphs at the time of entry. But when I display this text content, the paragraphs are not shown. Everything will just appear in one

[PHP-DB] Help with formating text from PHP

2003-08-14 Thread Budelak
Hello, Can someone help with this problem I've been trying to solve but don't how to. I have a field of type longtext that contains text with paragraphs at the time of entry. But when I display this text content, the paragraphs are not shown. Everything will just appear in one long text with

Re: [PHP-DB] Help with formating text from PHP

2003-08-14 Thread Andrew D. Luebke
How are the paragraph breaks represented in the original text? You have have to detect the paragraph breaks and change to a /r/n. Andrew. At 11:40 PM 8/9/2003, Budelak wrote: Hello, Can someone help with this problem I've been trying to solve but don't how to. I have a field of type longtext

Re: [PHP-DB] Help with formating text from PHP

2003-08-10 Thread Budelak
The text are type into an input field by the user who is nonot a programmer at all. This inputt field updates the database that is later called up for display. Bunmi Andrew D. Luebke wrote: How are the paragraph breaks represented in the original text? You have have to detect the paragraph

Re: [PHP-DB] Help with formating text from PHP

2003-08-10 Thread John W. Holmes
Budelak wrote: You guys thanks for the encouragement. I finally solved it with this: ?php $text= preg_replace(/(\015\012)|(\015)|(\012)/,nbsp;br /, $rsDailynewsDetail-Fields('newsfull')); echo $text; ? Help came of course from the link Holmes gave. You're welcome, I think. Why didn't you just