Ciao forum,
devo inserire i valori di un array nel database.
questo è l'array:
Codice PHP:
Array
(
    [
COD_APP] => E00697467HO
    
[COD_UBI] => GB292315243I
    
[UBICAZIONE] =>pippo
    
[ULTIMA_LETTURA] =>09/01/2009
    
[IN] =>14316850
    
[OUT] =>10767500                

i nomi dei campi della tabella sono uguali agli indici dell'array.
L'ultima query che ho provato è questa, ma è proprio sbagliata:
Codice PHP:
$sql "INSERT INTO cnt_tempo_reale (ID, COD_APP, COD_UBI, UBICAZIONE, ULTIMA_LETTURA, IN, OUT) VALUES ('NULL',".$product_array[0].")"
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 'IN, OUT) VALUES ('NULL',Array)' at line 1.

Mi illuminate?
grazie a tutti.