Menu
Hi guys, really hoping someone can help me out because I’m pulling my hair out over this!!
My boss keeps writing texts in Word and forwards it on to me to post to our website which I’ve built but when he puts apostrophies in, they get turned into the wierd characters. The text is inserted into a database by PHP and the apostrophy looks like this in the database… ’
I am posting the input to the db in the following way…
[code=php]
mysql_query(“INSERT INTO table VALUES (
‘”.mysql_real_escape_string($text).”‘
)”) or die (mysql_error());
Hope someone can help…
Thanks in advance
Smithster