Just a simple question maybe. I'm using a news system on my website which I've made myself, but the news does not enter into the database when using any special character like below:
I've tried using the following but it still does not work:Code:~ or ` or ' or "
Anyone knows the right way to use this so I can still use the "special characters"? :PPHP Code:
$news = htmlspecialchars(htmlentities(stripslashes(trim($_POST['news']))));
Thanks in advance!