Last active
August 29, 2015 14:13
-
-
Save gpickin/a1131be594f160f2ff00 to your computer and use it in GitHub Desktop.
Getting Started with WebSQL in your Mobile App - Code 6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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