ho già risolto

ecco il codice:

mysql_query("UPDATE $table SET $campi WHERE id = " . $id . "");