How to store data which contents the quotes in mysql

Posted by Nitz on Stack Overflow See other posts from Stack Overflow or by Nitz
Published on 2010-04-27T11:59:33Z Indexed on 2010/04/27 12:03 UTC
Read the original article Hit count: 476

Filed under:
|

Hey Guys, i have one problem.

In one of my form i have use rich text editor from the yahoo.
now i want to store the data from that text area to mysql database.
bcz user can enter anything in that textarea. as example user can enter many double quotes, or single quotes.
so i need to store that data which may content many double quotes or many single quotes, so how to do that?
normally we store by adding that data in one variable and then put that in sql then fire. but now variable contents many quotes and now i have problem to store.

i can't remove that quotes bcz of my style which is generated by rich text editor.

So how can store that data without affecting my styles of data.

© Stack Overflow or respective owner

Related posts about php

Related posts about mysql-query