Store it in the database just as it was typed. Dont format it.
When you output it, use...
#replace(var, '#chr(13)##chr(10)#', 'br /', 'all')#
-Original Message-
From: Will Tomlinson [mailto:[EMAIL PROTECTED]
Sent: Friday, October 20, 2006 7:42 AM
To: CF-Talk
Subject: Best way to
Will,
What's the simplest way to maintain simple formatted text in a db, without
using tinyMCE, FCKeditor, or typing html into the textarea? When I say
simple, I mean I just want to show line breaks, carriage returns, etc. Not
worried about boldness, tables, etc.
I just tried using
Store it in the database just as it was typed. Don?t format it.
When you output it, use...
#replace(var, '#chr(13)##chr(10)#', 'br /', 'all')#
Thangya dude
me
~|
Introducing the Fusion Authority Quarterly Update. 80 pages of
Thanks dan! Checkin it out.
Will
~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four
times a year.
What's the simplest way to maintain simple formatted text in
a db, without using tinyMCE, FCKeditor, or typing html into
the textarea? When I say simple, I mean I just want to show
line breaks, carriage returns, etc. Not worried about
boldness, tables, etc.
I just tried using
I'm in total agreement that you COULD do that but I'd recommend not. It's
been my experience that putting the data into the database in the same exact
format that it was entered by the user and formatting it only for display
purposes (that dont affect the data directly) is your best bet to avoid
You could format it with a SELECT statement though if that's what Andy
meant? That would not affect the data but format it for display.
Yep, that is what I meant. Sometimes I find it easier to just send it back
formatted in the correct way, but I'll always store it the way it was
entered by
7 matches
Mail list logo