My description paragraph contains (“” and ‘) but when I try to save data, slash(\) get saved in database before these characters. I am using mysql_real_escape_string($_POST['des'],$link); but that is not working.
My description paragraph contains ( and ‘) but when I try to save data,
Share
It sounds like you’re double-escaping your data. This would be the case if magic quotes are enabled. You can check for this by examining the return value of
gpc_magic_quotes_enabled().If magic quotes are enabled, you should turn them off in your php.ini, or unescape your data with
stripslashesbefore you use it.