Jump to content

mysql_real_escape_string vs mysqli_real_escape_string


hoogie

Recommended Posts

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.