Jump to content

[SOLVED] mysql_real_escape_string


Xyphon

Recommended Posts

I have a very important question revolving around this function..

 

When do you need to use mysql_real_escape_string.

 

Do you only need to use it in text, or all $_POST or $_GET. Because you can only hack with text, so is there any need to use it anywhere else?

 

Thank you,

Xyphon.

Link to comment
https://forums.phpfreaks.com/topic/121324-solved-mysql_real_escape_string/
Share on other sites

Any $_POST, $_FILES, $_GET, or $_COOKIE data sent to your code can be manipulated and needs to be escaped if put into an sql query to prevent sql injection and to prevent broken queries should that data contain any special characters.

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.