I'm looking to develop a customized function for dynamically inserting data into the webSQL Database. Unfortunately, indexed DB is not an option due to Zetakey's lack of support for it.
tx.executeSql("INSERT INTO " + table + "(" + formatfields + ")
VALUES (" + formatqm + ")",
[formatvalues],
webdb.onSuccess,
webdb.onError);
In passing on the query:
formatfields = "one, two"; (could be any number)
formatqm = "?, ?";
formatvalues = "123, 456"; (dynamic user entries for x fields)
Could someone advise me on how to handle the formatvalues? It works perfectly when I input 123, 456 directly.
Appreciate any help in advance!