Jump to content

get_magic_quotes_gpc() and mysql_real_escape_string()


robert_gsfame

Recommended Posts

I just wonder what is the use of get_magic_quotes_gpc() function compared to mysql_real_escape_string()

 

As far as i know, get_magic_quotes_gpc() will add slash to all special characters like '', " ", \

so does the mysql_real_escape_string()

 

What makes this 2 functions different?? and if it has the same function, then is it safe enough to use get_magic_quotes()

 

Thx for any helps

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.