db.transaction(function (tx) {
tx.executeSql(" UPDATE tablename SET URL1= ? , URL2= ? WHERE ID = ?",
[url1, url2, id],
function (tx, rst) {
//do something
},
onError = function (tx, e) {
//do something
})
});
even there was no error thrown, data was not updated in the db. once i tried the same from console, table got updated successfully. Am i missing something. Thanks in advance.
Aucun commentaire:
Enregistrer un commentaire