Salve raga, ho questa query:

mysql_query(" UPDATE concorsi SET oggetto='$oggetto',
gi='$gi',
mi='$mi',
ai='$ai',
gf='$gf',
mf='$mf',
importo='$importo',
importo_cent='$importo_cent',
responsabile='$resp',
tipo='$tipo',
procedura='$testo',
allegato1='$allegato',
allegato2='$allegato2',
allegato3='$allegato3',
allegato4='$allegato4'
WHERE id = $id")or die ("".mysql_error());

ma mi da il seguente errore, perche?
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