Code Comments
Programming Forum and web based access to our favorite programming groups.Hi, I want to be able to display the contents of a field, stored in a mySQL table, to be displayed as it was entered (ie. with the carriage returns in place). At the moment when i display the contents of the field it puts it into one continuous sentance. Regards, Neil.
Post Follow-up to this messageNeil H wrote: > Hi, > > I want to be able to display the contents of a field, stored in a mySQL > table, to be displayed as it was entered (ie. with the carriage returns in > place). > > At the moment when i display the contents of the field it puts it into one > continuous sentance. > > Regards, > Neil. > > Either output the text as-is between PRE tags, or use the nl2br() function to convert the newlines to BR tags.
Post Follow-up to this messageNeil H wrote: > Hi, > > I want to be able to display the contents of a field, stored in a mySQL > table, to be displayed as it was entered (ie. with the carriage returns in > place). > > At the moment when i display the contents of the field it puts it into one > continuous sentance. Only when displayed in a browser as HTML. Either display as text, or replace line-breaks with <BR>. -- Oli
Post Follow-up to this messageThat did the job, Thanks. Neil. "Jason F." <jason.newsonly@gmail.com> wrote in message news:DFvbe.16645$mp6.2184782@twister.nyc.rr.com... > Neil H wrote: in one > > Either output the text as-is between PRE tags, or use the nl2br() > function to convert the newlines to BR tags.
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.