HideMe Posted May 31, 2009 Share Posted May 31, 2009 Hello, people on PhpFreaks i want to know how to secure from sql injection and others. please reply thank! Link to comment https://forums.phpfreaks.com/topic/160315-help/ Share on other sites More sharing options...
Michdd Posted May 31, 2009 Share Posted May 31, 2009 There are many sanitizing functions you'll want to look into (not only for mysql injection prevention): mysql_real_escape_string() trim() strip_slashes() And many others possibly, like htmlentities() Link to comment https://forums.phpfreaks.com/topic/160315-help/#findComment-846000 Share on other sites More sharing options...
Ken2k7 Posted May 31, 2009 Share Posted May 31, 2009 SQL Injection - mysql_real_escape_string Others - Uh... please specify. Link to comment https://forums.phpfreaks.com/topic/160315-help/#findComment-846001 Share on other sites More sharing options...
HideMe Posted May 31, 2009 Author Share Posted May 31, 2009 mysql_real_escape_string() does not hardly secure you from SQL Injection all it does it adds slashes kinda.. say ' it will become \' same for ".. \"... Link to comment https://forums.phpfreaks.com/topic/160315-help/#findComment-846002 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.