Ciao a tutti! Mi sapreste dire quale codice usare per far si che il testo relativo ad un campo venga inviato al database mysql in formato html, per impedire che vengano automaticamente eliminati tutti i tag? Io ho inserito questo codice, ma quando invio il testo , esso viene correttamente inserito nel db, ma sempre senza nessun tag html. La variabile relativa al testo è $comments.
Grazie 1000!$vid = $_POST['vid'];
$comments = $_POST['comments'];
$todays_date = $config["date_format"];
$user_id = mysql_real_escape_string($user_id);
$user_name = mysql_real_escape_string($user_name);
$vid = mysql_real_escape_string($vid);
$comments = mysql_real_escape_string($comments);
$todays_date = mysql_real_escape_string($todays_date);
$sql = "INSERT into comments (by_id, by_username, video_id, comments, todays_date) VALUES ($user_id, '$user_name', $vid, '$comments', '$todays_date')";