Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gpickin/a1131be594f160f2ff00 to your computer and use it in GitHub Desktop.
Save gpickin/a1131be594f160f2ff00 to your computer and use it in GitHub Desktop.
Getting Started with WebSQL in your Mobile App - Code 6
db.transaction(function (tx) {
tx.executeSql(’SELECT * FROM doctors’,
[],
function( tx, result ){
var len = results.rows.length, i;
for (i = 0; i < len; i++) {
console.log(results.rows.item(i).doctorName);
}
},
function( tx, error ){}
);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment