Author Topic: Warning: htmlentities() expects parameter 2 to be long - UTF8  (Read 28730 times)

Savera

  • Full Member
  • ***
  • Posts: 159
Hi
I am trying to sanitize UTF8 string and now I am getting this error
Warning: htmlentities() expects parameter 2 to be long, string given in s\www\dict\includes\functions.php on line 7

I have used
   return htmlentities(mysql_real_escape_string($string);

Now I am not sure is it because of this htmlentities or some other part ?

 

X

Do you know?

IfAndBut.com gives you a platform where you can ask questions related to web and internet..
So, why wait..
Join Now!
anything

Database Error

Please try again. If you come back to this error screen, report the error to an administrator.
Back