rockinaway Posted February 20, 2007 Share Posted February 20, 2007 Are these 2 functions the same in the job they do?> Link to comment https://forums.phpfreaks.com/topic/39355-addslashes-and-mysql_real_escape_string/ Share on other sites More sharing options...
trq Posted February 20, 2007 Share Posted February 20, 2007 No. I believe addslashes will only escape ' and " while mysql_real* escapes chars that mysql considers special. Link to comment https://forums.phpfreaks.com/topic/39355-addslashes-and-mysql_real_escape_string/#findComment-189825 Share on other sites More sharing options...
rockinaway Posted February 20, 2007 Author Share Posted February 20, 2007 So which is better to use for secruity? If I was to have a log in or a search? Link to comment https://forums.phpfreaks.com/topic/39355-addslashes-and-mysql_real_escape_string/#findComment-189837 Share on other sites More sharing options...
trq Posted February 20, 2007 Share Posted February 20, 2007 If your talking about interacting with mysql then mysql_real_escape_string(0 is your best option. Link to comment https://forums.phpfreaks.com/topic/39355-addslashes-and-mysql_real_escape_string/#findComment-189849 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.