Allora devo eseguire l'update di un record multiplo (più valori).
Ho fatto così
codice:
$risultato=mysql_query("update db_contatti
set nome='$nome' and
set provincia='$provincia' and
set cap='$cap'
set ragione_sociale='$ragione_sociale'
set email='$email'
set telefono='$telefono'
set cellulare='$cellulare'
set fax='$fax'
set indirizzo='$indirizzo'
set partita_iva='$partita_iva'
set comune='$comune'
set forma_giuridica_desc='$forma_giuridica_desc'
set contatto1='$contatto1'
set contatto2='$contatto2'
set contatto3='$contatto3'
set contatto4='$contatto4'
set contatto5='$contatto5'
set note='$note'
set account='$account'
set descrizione_categoria='$descrizione_categoria'
where contatore='$contatore'") or die (mysql_error());
ottengo però questo errore:
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 'set provincia='RM' and set cap='00010'
chi mi può aiutare?