Ciao sapreste dirmi dove è l' errore???

Codice PHP:

<?php

if ($testo == "")

{
echo 
"Errore: Il campo testo &egrave; obbligatorio.";
echo 
"<META HTTP-EQUIV=REFRESH CONTENT='5; URL=index.php?id=$id'>";
}

 else
 {

$nome addslashes(stripslashes($nome));
$mail addslashes(stripslashes($mail));
$testo addslashes(stripslashes($testo));
 
 
$nome str_replace("<""&lt;"$nome);
 
$nome str_replace(">""&gt;"$nome);
 
$testo str_replace("<""&lt;"$testo);
 
$testo str_replace(">""&gt;"$testo);
 
$mail str_replace("<""&lt;"$mail);
 
$mail str_replace(">""&gt;"$mail);


 include(
"../../config.inc.php");


$query "INSERT INTO news_commenti ('testo', 'data', 'utente', 'mail', 'id_news') 
VALUES ('
$testo', NOW(), '$nome', '$mail', '$id')";



if (
mysql_query($query$db)){
 echo 
"L'annuncio &egrave; stato inserito correttamente";}
 else{
 echo 
"Erorre durante l'inserimento<META HTTP-EQUIV=REFRESH CONTENT='5; URL=forminserisci.php'>"
}
 
mysql_close($db);
}
?>