how to display special characters in php mysql

 

if special characters are not displaying in php .if it is showing like “?” use below steps

1)Add below meta tag in between <head></head> section                         <meta charset=”utf-8” />

2) Use htmlentities function to display mysql query result

$value=htmlentities($row[‘name’]);

echo $value;

 

My Thought

Your email address will not be published. Required fields are marked *

Our Tool : hike percentage calculator