Am I safe from a MySQL injection?

Viewed 2991

Is the following good enough to avoid a SQL injection?

mysql_real_escape_string(htmlentities (urlencode($_POST['postmessage'])));
4 Answers
Related