I've been looking through a few mySQL tutorials and I've come across this at http://www.scit.wlv.ac.uk/appdocs/php/function.mysql-real-escape-string.html
"mysql_real_escape_string ( string unescaped_string [, resource link_identifier])
You must always (with few exceptions) use this function to make your data safe before sending a query to MySQL. If you have magic_quotes_gpc enabled, and you are working with data from user input, you must first stripslashes() your data. If your data are form other sources and you have magic_quotes_runtime enabled, you also have to stripslashes() your data. If you don't do so, you leave yourself open to SQL Injection Attacks."
No other tutorials I've read have mentioned this. Does anyone know about it? Does anyone use this?
Also, can someone explain exactly what magic_quotes_gpc, magic_quotes_runtime, or anything else to do with magic_quotes are? I've read the entry in the tutorial but I don't really understand it.
"mysql_real_escape_string ( string unescaped_string [, resource link_identifier])
You must always (with few exceptions) use this function to make your data safe before sending a query to MySQL. If you have magic_quotes_gpc enabled, and you are working with data from user input, you must first stripslashes() your data. If your data are form other sources and you have magic_quotes_runtime enabled, you also have to stripslashes() your data. If you don't do so, you leave yourself open to SQL Injection Attacks."
No other tutorials I've read have mentioned this. Does anyone know about it? Does anyone use this?
Also, can someone explain exactly what magic_quotes_gpc, magic_quotes_runtime, or anything else to do with magic_quotes are? I've read the entry in the tutorial but I don't really understand it.
