mtc
27th May 2003, 09:34
Hi,
I'm trying to write my first PHP script. It is a simple script to let visitors to the site add a story/news etc to the site.
It seems to be working perfectly except that the body of the story item is displaying without any carriage returns - they are getting lost somewhere between getting put into the database (where they are stored in longtext format) and getting printed out again.
Does anyone know how I can keep my carriage returns?
Thanks
Chris
I'm trying to write my first PHP script. It is a simple script to let visitors to the site add a story/news etc to the site.
It seems to be working perfectly except that the body of the story item is displaying without any carriage returns - they are getting lost somewhere between getting put into the database (where they are stored in longtext format) and getting printed out again.
Does anyone know how I can keep my carriage returns?
Thanks
Chris