Fix #1: Replaced deprecated function mysql_escape_string with mysql_real_escape_string