开发者

Inserting text from textarea to mysql table

I have a form with a textarea field. When i add some html c开发者_Python百科ode. It's inserting into the table properly but with extra slashes. Before inserting the code i used the mysql_real_escape_string function and stipslashes function. But still no use. The data adding with the slashes. What's the problem ? Is i have to use any other functions??


You should use stripslashes() when you are reading from the database.

Maybe you have magic_quotes_gpc on, please paste some code.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜