» Quick Links
You can make money on these forums
We Share profits with you
Google
Google Adsense
Google Adwords
YPN
Yahoo
MSN Search
Web Directories
Web Hosting
Web Hosting Offers
Hosting News
Suggestions
Link Building
Domain Names
PHP Forums
MySQL Forums
» More Links
OSP News
Reseller Hosting
Shared Hosting
Dedicated Servers
Google Adsense
Search Engine Marketing
Link Development
Affiliate Marketing


» Advertising
Multiple DC PR Check

Free SEO Tools


Go Back   Webmaster Forums > Website Developement / Programming > MySQL Forums

MySQL Forums Share Your Ideas and Tips about MYSQL. Ask questions about MYSQL. Table Design and Much More...

Reply
 
Thread Tools Display Modes
  #1  
Old 07-30-2006, 10:41 AM
strauss strauss is offline
OSP Starters
 
Join Date: Jul 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
strauss is on a distinguished road
Default row type to keep formatting

I am writing an app for our school newspaper to be posted online. I want to store everything in my MySQL db, but also want to keep the formatting when we put the articles in the DB. What should the row type be for this in order to keep the formatting (paragraphs mainly). Text puts it all together...

Basically articles will be copied out of word into a <textarea> field and I would like to eliminate the need to build in a WYSIWYG editor if possible...

Please help me out
Thanks in advance -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Revenue Sharing Ads ( ?):
  #2  
Old 07-30-2006, 10:43 AM
blakey blakey is offline
OSP Starters
 
Join Date: Jul 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
blakey is on a distinguished road
Default

Hi mate

You mean the column type? I'd use one of the TEXT types, and choose the proper size depending on how large you expect the articles to get. Don't forget to properly filter the input, or someone can insert CSRF or XSS into your data, and cause you and your users alot of trouble!! If you really want to allow simple formatting like <p>, then create a whitelist of the most basic formatting tags you want to allow, filter based on that. Disallow everything else.

Good Luck -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
table type? JXaviar MySQL Forums 1 10-24-2006 10:52 AM
CrystalTech Awarded SAS 70 Type 1 Certification outsourcingplans Web Hosting News 0 08-09-2006 04:24 AM
C I Host Awarded SAS 70 Type II Certification outsourcingplans Web Hosting News 0 08-08-2006 07:22 AM
SAVVIS Completes SAS 70 Type II Examination outsourcingplans Web Hosting Industry 0 01-19-2006 07:45 PM
NaviSite Completes SAS 70 Type II Audit outsourcingplans Web Hosting News 0 12-27-2005 03:54 PM


All times are GMT. The time now is 08:53 PM.