patheticsam Posted April 1, 2011 Share Posted April 1, 2011 Hi! I'm a little bit new to php and i'm having a stupid issue here with mysql_real_escape_string. I have a really simple text input field into an html form and I want to save the data into a SQL table. Sometime I'm trying to insert a name with a quote like : steve's ..So I escape the text with mysql_real_escape_string but the problem is that there's a \ also inserted into the DB (steve\'s)... Is there anyway to get rid of that? Thanks in advance! Quote Link to comment Share on other sites More sharing options...
cssfreakie Posted April 1, 2011 Share Posted April 1, 2011 Do you have magic quotes on?? if so put it off and check again. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.