Jump to content

strip or add slashes


chrispos

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.