RON_ron Posted September 12, 2012 Share Posted September 12, 2012 I'd like a stright forward answer from you expert... I've got a bunch of mysql_real_string() statements in my codes. Can I just go ahead and replace the word mysql to mysqli? will it cause any problems? Quote Link to comment Share on other sites More sharing options...
trq Posted September 12, 2012 Share Posted September 12, 2012 You can't mix and match the two different extensions, so if your changing everything else to mysqli, fine. Quote Link to comment Share on other sites More sharing options...
Christian F. Posted September 12, 2012 Share Posted September 12, 2012 You'll need to define the SQL connection to use as well, as the first parameter. Though, if you've read the PHP manual pages for the relevant functions you'd know that already. Quote Link to comment Share on other sites More sharing options...
RON_ron Posted September 12, 2012 Author Share Posted September 12, 2012 ... define the SQL connection to use ... you mean $link = mysqli_connect("localhost", "my_user", "my_password", "world"); Quote Link to comment Share on other sites More sharing options...
Jessica Posted September 12, 2012 Share Posted September 12, 2012 Did you read the manual? http://php.net/manual/en/mysqli.real-escape-string.php Quote Link to comment 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.