Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- checkDB();
- function checkDB(){
- var db = window.openDatabase("xRate", "1.0", "Database", 1000);
- db.transaction(xrateQueryPound);
- }
- function xrateQueryPound(tx){
- pound = tx.executeSql('SELECT xrate FROM XRATES WHERE currency = "pound"');
- return pound;
- }
- var pound = xrateQueryPound();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement