Re: [PHP] Formatting Question

2006-10-05 Thread Toby Osbourn
Thanks to everyone for their suggestions, I used the nl2br function in the end, and it works perfectly. On 02/10/06, Richard Lynch <[EMAIL PROTECTED]> wrote: On Mon, October 2, 2006 4:13 pm, tedd wrote: > Why not use nl2br() to show the data in the browser and leave the > data "as-is" in the dB

Re: [PHP] Formatting Question

2006-10-02 Thread Richard Lynch
On Mon, October 2, 2006 4:13 pm, tedd wrote: > Why not use nl2br() to show the data in the browser and leave the > data "as-is" in the dB? Apparently I typed too much, cuz that's exactly what I said, or meant to say... -- Some people have a "gift" link here. Know what I want? I want you to buy a

Re: [PHP] Formatting Question

2006-10-02 Thread tedd
At 3:51 PM -0500 10/2/06, Richard Lynch wrote: Don't "pollute" your raw data (the newlines) with a very media-specific formatting code ("") -- Keep your raw data pure and clean, and format for the destination when you send it there, not when you store it. There *might* be some egregious examples

Re: [PHP] Formatting Question

2006-10-02 Thread Richard Lynch
On Mon, October 2, 2006 12:08 pm, Toby Osbourn wrote: > Sorry to plague you with a question that should have a simple answer, > but I > can't find said answer anywhere (probably looking for the wrong things > in > the wrong places!) > > Basically I want to allow a user to input a string via a form

Re: [PHP] Formatting Question

2006-10-02 Thread tedd
At 6:08 PM +0100 10/2/06, Toby Osbourn wrote: Sorry to plague you with a question that should have a simple answer, but I can't find said answer anywhere (probably looking for the wrong things in the wrong places!) Basically I want to allow a user to input a string via a form into a database, I

Re: [PHP] Formatting Question

2006-10-02 Thread Dave Goodchild
How is the field set in the database - is it CHAR/VARCHAR or TEXT? -- http://www.web-buddha.co.uk http://www.projectkarma.co.uk

[PHP] Formatting Question

2006-10-02 Thread Toby Osbourn
Sorry to plague you with a question that should have a simple answer, but I can't find said answer anywhere (probably looking for the wrong things in the wrong places!) Basically I want to allow a user to input a string via a form into a database, I have the code to do that and it works almost 10