salve ho questo codice:
Codice PHP:
$sql="(IDUtente, Nome, Cognome, Email, Password, Azienda, PartitaIVA, Indirizzo, Nazione, Regione, Citta, Cap, Provincia, ";
$sql.="Telefono, Fax, Privacy, DomandaSegreta, RispostaDomandaSegreta, DataRegistrazione";
$sql=" values ";
$sql.="('$idutente', '$name', '$surname', '$email', '$password', '$company', '$piva', '$address', '$state', '$region', $city', '$cap', ";
$sql.="'$province', '$telephone', '$fax', 'ACCETTO', '$question', '$response', Now())";
mysql_query("INSERT INTO register $sql") or die (mysql_error())
mi da 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 '', '81011', 'Caserta', '3467518370', '0823785897', 'ACCETTO', 'Il nome del tuo a' at line 1