I don`t know coding. I recently my website stop to work properly. I get this error on the top of on every page loaded.

Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /home/nortoniq/public_html/mywebsiteaddress.com/wp-content/themes/porto/functions.php on line 60

Anybody can help me with this error? much appreciate


Use mysql_real_escape_string() instead mysqli_real_escape_string. For more information CLICK HERE

mysqli_real_escape_string ($link ,$source )  // $link is your connection variable
  • Can you please tell me where do I need to change this? is it in wordpress file or in SQL database or else? Sorry for lame questions ;)
    – nortoniq
    Dec 26 '17 at 16:40
  • in /home/nortoniq/public_html/mywebsiteaddress.com/wp-content/themes/porto/functions.php on line 60 replace this function Dec 27 '17 at 3:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.