Codice PHP:
mysql_connect($mysql[host], $mysql[user], $mysql[pass]);
mysql_select_db($mysql[name]);

mysql_query("select * from voti WHERE id = 1");
 
mysql_query("INSERT INTO voti (bere) VALUES ('5') WHERE id = '1' "); 
premesso che , se sostituisco quanto sopra con l' istruzione :
Codice PHP:
mysql_query("UPDATE voti SET bere = '$_POST[bere]' WHERE id = '1' "); 
tutto fila liscio e che questa è la struttura del mio database :

#
# Table structure for table 'voti'
#

DROP TABLE IF EXISTS voti;
CREATE TABLE IF NOT EXISTS voti (
id tinyint(4) NOT NULL auto_increment,
locale int(1) ,
bere int(1) ,
mangiare int(1) ,
servizio int(1) ,
musica int(1) ,
prezzi int(1) ,
generale int(1) ,
PRIMARY KEY (id)
);

#
# Dumping data for table 'voti'
#
INSERT INTO voti VALUES("1","5","","8","10","6","40","5");

perchè incorro in :

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 'WHERE id = '1'' at line 1


grazie
carmine