开发者

Inserting text from textarea to mysql table

开发者 https://www.devze.com 2023-02-21 22:32 出处:网络
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_

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

精彩评论

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