what are you trying to do here !
Escape input to be passed to a MySQL database.
you strip slashes to just add it again later .. !
stripslashes() and mysql_real_escape_string() do slightly different things, but enough for it to be problematic to use the former to escape input meant to be passed to a MySQL database.
Recall that mysql_real_escape_string() takes things like the database locale into account.