Using mysql_real_escape_string in a right maner...
text_format+text_format-
Using mysql_real_escape_string in a right maner...
Using mysql_real_escape_string is enough to protect you against SQL injection and the stropslashes you are doing after makes you vulnerable to SQL injection. If you really want it, put it before as in: