login about faq

hi i'm just wondering if you guys do this, and if so, should i still escape quotes? i just saw that mysql can actually store things as is, without escape quotes, however some engines automatically add a quote (maybe due to magic quotes turned on). is this still necessary or is it still advisable to escape the quotes then remove them upon output?

asked Oct 10 '11 at 07:48

whatever's gravatar image

whatever
1.1k1329

What kind of HTML data would you like to store in the database?

(Oct 10 '11 at 14:46) Randell ♦♦ Randell's gravatar image

blog posts - html paragraphs, i plan to store an entire layout structure. design tags - bold, italic, strong, etcetera.

(Oct 10 '11 at 15:25) whatever whatever's gravatar image

I think there shouldn't be a problem as long as you can retrieve it exactly as it is. That's why magic quotes is actually deprecated and discouraged for 6.x.

The main use of it is just so strings doesn't end prematurely when running queries and iirc, the slash doesn't actually gets inserted in db.

link

answered Oct 10 '11 at 21:00

Marconi's gravatar image

Marconi
9289

edited Oct 10 '11 at 21:05

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×64
×9

Asked: Oct 10 '11 at 07:48

Seen: 758 times

Last updated: Oct 10 '11 at 21:05