Logician Posted November 10, 2011 Share Posted November 10, 2011 I use PHP's mysql_real_escape_string() when using MySQL's INSERT. What I am wondering is if PHP's mysql_real_escape_string() should also be used when using MySQL's DELETE? Link to comment https://forums.phpfreaks.com/topic/250830-using-phps-mysql_real_escape_string-with-mysqls-delete/ Share on other sites More sharing options...
trq Posted November 10, 2011 Share Posted November 10, 2011 You need to escape ALL external data that you use in ALL queries. Link to comment https://forums.phpfreaks.com/topic/250830-using-phps-mysql_real_escape_string-with-mysqls-delete/#findComment-1286976 Share on other sites More sharing options...
Logician Posted November 10, 2011 Author Share Posted November 10, 2011 When I used it in an interpolated PHP thing, it broke my page. Thanks for the information. Link to comment https://forums.phpfreaks.com/topic/250830-using-phps-mysql_real_escape_string-with-mysqls-delete/#findComment-1287013 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.