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! Link to comment https://forums.phpfreaks.com/topic/232364-simple-problem-with-mysql_real_escape_string-please-help/ 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. Link to comment https://forums.phpfreaks.com/topic/232364-simple-problem-with-mysql_real_escape_string-please-help/#findComment-1195355 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.