chrispos Posted February 28, 2011 Share Posted February 28, 2011 Hi All I Am confused I would like to put info into a database but need it to be secure. I have some code shown below. The problem is I would like to put in ' but keep the data secure. When it comes back I do not want to show \' I think you might know what I am trying to do. Here is the code but would like to know how to stop the \' showing. $password = mysql_real_escape_string(stripslashes(trim($_POST['password']))); Any help would be great thank you. Link to comment https://forums.phpfreaks.com/topic/229126-strip-or-add-slashes/ Share on other sites More sharing options...
AbraCadaver Posted February 28, 2011 Share Posted February 28, 2011 The code you posted will insert a ' not \' Link to comment https://forums.phpfreaks.com/topic/229126-strip-or-add-slashes/#findComment-1180858 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.