Hi,
When I insert some var values in sqlite DB, debug console send me this kind of message:
"Error: SQLITE_ERROR: near ":12": syntax error"
"Error: SQLITE_ERROR: near ":02": syntax error"
In a function i'm trying to insert with this command:
var newMsg = {
"topic": "INSERT INTO Consums (Data,Hora,GenFotoWL1,ConsumWL1,XarxaWL1,ExcedentWL1,XarxaKwh,FVKwh)"+"VALUES ( "+data+","+hora+","+FOTOV+","+CASA+","+XARXA+","+EXCD+","+XAKWHIII+","+FKWHIII+")"
}
return newMsg;
Where data, hora, FOTOV,..., are declarated vars in this function.
Some fields are text, others are REAL and others INT.
What is the meaning of this error?
I don't know whats wrong....
Thanks in advance