hoogie Posted March 12, 2011 Share Posted March 12, 2011 I apologize if this has been asked before. I'm trying to find out what exactly is the difference between mysql_real_escape_string() and mysqli_real_escape_string(), and haven't had much luck. So far I know that mysqli supports OOP, but mysql does not - are there other differences? Does mysqli escape % and _ characters (I don't think mysql does). I'm not working in an OOP environment, so does it matter which I use? Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/230439-mysql_real_escape_string-vs-mysqli_real_escape_string/ Share on other sites More sharing options...
fenway Posted March 13, 2011 Share Posted March 13, 2011 Where do you check these differences? Quote Link to comment https://forums.phpfreaks.com/topic/230439-mysql_real_escape_string-vs-mysqli_real_escape_string/#findComment-1186840 Share on other sites More sharing options...
hoogie Posted March 13, 2011 Author Share Posted March 13, 2011 I've just been looking in the online PHP manual. But it's not clear why there are two different escape functions for mysql, or what they do differently. Quote Link to comment https://forums.phpfreaks.com/topic/230439-mysql_real_escape_string-vs-mysqli_real_escape_string/#findComment-1186898 Share on other sites More sharing options...
Pikachu2000 Posted March 13, 2011 Share Posted March 13, 2011 Clicky. Quote Link to comment https://forums.phpfreaks.com/topic/230439-mysql_real_escape_string-vs-mysqli_real_escape_string/#findComment-1186969 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.