android6011 Posted April 14, 2008 Share Posted April 14, 2008 I was wondering if i do a preg_replace for any single or double quotations if that would protect me against sql injection. Link to comment https://forums.phpfreaks.com/topic/101118-protect-against-sql-injection/ Share on other sites More sharing options...
darkfreaks Posted April 14, 2008 Share Posted April 14, 2008 yes but its easier if you use mysql_real_escape_string() ,trim(), strip_tags() Link to comment https://forums.phpfreaks.com/topic/101118-protect-against-sql-injection/#findComment-517145 Share on other sites More sharing options...
android6011 Posted April 14, 2008 Author Share Posted April 14, 2008 use all of them or just one that i prefer? Link to comment https://forums.phpfreaks.com/topic/101118-protect-against-sql-injection/#findComment-517147 Share on other sites More sharing options...
darkfreaks Posted April 14, 2008 Share Posted April 14, 2008 id use tthe first two Link to comment https://forums.phpfreaks.com/topic/101118-protect-against-sql-injection/#findComment-517148 Share on other sites More sharing options...
android6011 Posted April 14, 2008 Author Share Posted April 14, 2008 ok thank you Link to comment https://forums.phpfreaks.com/topic/101118-protect-against-sql-injection/#findComment-517155 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.