modificato in questo modo:
funzione.php
salva.phpCodice PHP:function strip_magic ($value)
{
$value = (get_magic_quotes_gpc()) ? stripslashes($value) : $value;
return $value;
}
$testo = strip_magic($_POST['testo']); //ATTENZIONE: i campi di input vanno validati attentamente!!
$testodb = mysql_real_escape_string($testo,$conn);
ma continua a non andareCodice PHP:include "funzione.php";
mysql_query("INSERT INTO news (testo) VALUES ('$testodb')");

Rispondi quotando
