0

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

1 Answer 1

0

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
2
  • 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
    Commented Dec 26, 2017 at 16:40
  • in /home/nortoniq/public_html/mywebsiteaddress.com/wp-content/themes/porto/functions.php on line 60 replace this function Commented Dec 27, 2017 at 3:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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