robert_gsfame Posted January 25, 2010 Share Posted January 25, 2010 I really confused with this when should i use stripslashes when using mysql_real_escape_string() As far as i did, i only use it when there is INSERT, DELETE and UPDATE query...but not in SELECT query.. can anyone explain this to me..thx Link to comment https://forums.phpfreaks.com/topic/189726-not-sure-when-to-use-stripslashes/ Share on other sites More sharing options...
oni-kun Posted January 25, 2010 Share Posted January 25, 2010 As long as magic_quotes_gpc is off then there is no need to strip slashes (as doubles would be added with *_escape_string if it were on). It should not be run on any query, mysql_real_escape_string is good enough. Link to comment https://forums.phpfreaks.com/topic/189726-not-sure-when-to-use-stripslashes/#findComment-1001285 Share on other sites More sharing options...
robert_gsfame Posted January 25, 2010 Author Share Posted January 25, 2010 thx, i really worry as it could break the query Link to comment https://forums.phpfreaks.com/topic/189726-not-sure-when-to-use-stripslashes/#findComment-1001286 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.