I really confused with stripslashes when being used to escape from quotes mysql_real_escape_string()
I always use it when trying to INSERT or UPDATE data so that i wont get any quote "\" inside my database..
When SELECT and DELETE data, i only used mysql_real_escape_string($value)
is this correctly used???
Thanks
Not sure when to use stripslashes
Moderator: General Moderators
-
green_coder
- Forum Newbie
- Posts: 7
- Joined: Mon Oct 26, 2009 1:40 am
Re: Not sure when to use stripslashes
Keep using mysql_real_escape_string.
stripslashes is only for when you have magic_quotes enabled - that's an entirely separate issue.
stripslashes is only for when you have magic_quotes enabled - that's an entirely separate issue.