Trouble with putting text from DB to input & textarea
Posted on 2006-10-25
I've developed my own news system. input for title, textarea for content, put them in database, then retrieve them from database.
But I have trouble with ' and/or " characters.
Im using this for putting them in database.
$sql="INSERT INTO `progress_news` SET `title`='".$_POST["title"]."', `author`='".$_SESSION["user"]."', `date`='".date("Y:m:d H:i:s")."', `content`='".$_POST["content"]."'";
Any hints of how I can do this so ' and " characters gets accepted and now messing up ?