If I remove this function, my website crashes.
I was having similar problem like the one listed here: https://wordpress.org/support/topic/fatal-error-uncaught-error-call-to-undefined-function-mysql_escape_string/
and my solution was using this function.
What should I do now? How to give it 2 variables? I am a newbie at PHP.