I am using SQLITE as my database in Phonegap but the value of the variable is not being accepted in tx.execute statements
var name=document.getElementByID("Txtname").value;
var age=document.getElementByID("Txtage").value;
function populateDB(tx)
{
tx.executeSql('DROP TABLE IF EXISTS DEMO');
tx.executeSql('CREATE TABLE IF NOT EXISTS DEMO (id unique, data)');
tx.executeSql('INSERT INTO DEMO (id, data) VALUES (1, '"+name+"')');
tx.executeSql('INSERT INTO DEMO (id, data) VALUES (2, '"+age+"')');