Will mysql_real_escape_string() prevent all MySQL injection attacks? I'm being told this is true, but it doesn't seem like enough ...
It should prevent most attacks, however there's still a way around it in specific cases. Read this: http://ilia.ws/archives/103-mysql_real_escape_string-versus-Prepared-Statements.html So, it's best that you use mysqli with prepared statements or PDO instead.