Codice del form:

<form action="modifica.php" method="POST">
<label>Autore:</label>

<input type="text" name="autore" value="<?php echo $row[autore] ?>" />


<label>Titolo:</label>

<input type="text" name="titolo" value="<?php echo $row[titolo] ?>"/>


<label>Messaggio:</label>

<textarea id="messaggio" name="messaggio" style="width:800px;height:200px;"><?php echo $row[messaggio] ?>
</textarea>



<input type="submit" name="invia" value="Modifica comunicato"/>
</form>

Codice modifica.php:
<?php

if (isset ($_POST['invia'])) {

$row[autore] = $_POST['autore'];
$row[titolo] = $_POST['titolo'];
$row[messaggio] = $_POST['messaggio'];

$sql = ("UPDATE comunicati SET autore='$_POST[autore]', titolo='$_POST[titolo]', messaggio='$_POST[messaggio]' WHERE id={$_GET['id']}");
if (!mysql_query($sql,$db))
{
die('Errore inserimento:' . mysql_error());
}
echo "Comunicato modificato";
mysql_close($db);
}

?>


Errore :
Errore inserimento:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1

Che fò ?