mysql_real_escape_string cleans the given var so it is fit to be used in a sql query. It basically adds backslashes to the var in certain areas so that it can't be used in a query. This prevents SQL Injection.
htmlentities converts HTML in the given var to standard code. So basically it would convert » to ».
get_magic_quotes_gpc just checks if magic_quotes is enabled on the server![]()





Reply With Quote





