I have written this short function to protect against my_sql injection, because of its importance I just want to double check with other\'s that this will function as I inte
you need to explicitly add the database connection identifier into
mysql_real_escape_string(..., $db_connection_identifier);
mysql_real_escape_string
string mysql_real_escape_string ( string $unescaped_string [, resource $link_identifier ] )