0

I want to store special characters like in database.

I tried following code

$string = htmlentities($_REQUEST['string ']);
$string = mysql_real_escape_string($_REQUEST['string ']);

But failed to store in MySQL Database.

MySQL Database is utf-8

Dinesh Shingadiya
  • 988
  • 1
  • 8
  • 23

0 Answers0