I am trying to enter data using forms in MySQL as well as using mysql_real_escape_stringfor this purpose. Unfortunately, I have a problem with the exit. It displays \s, or if I use stripslashes, then it removes all slashes.
If I send web forms using backslash \, I get this output:
"web\ forms using backslash \\"
I have a double backslash. But if I use the function stripslashes, then it deletes all slashes, but also deletes the entered slash, and the output is
"web forms using backslash"
The backslash is not displayed here, but there must be one backslash at the end.
The problem is that if someone uses a backslash in the password field and any other filed one, then the backslash will be deleted or displayed twice. Also, please tell me what is the best way to display the output of htmlentities or htmlspecialchars
source
share