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 Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.