a guest Dec 3rd, 2019 89 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function dataBaseInsert(type, target, date)
  2. {
  3.         db.transaction(function(transaction){
  4.         var sql='INSERT INTO shots(bulletType, target, date) VALUES(?,?,?)';
  5.         transaction.executeSql(sql, [type, target, date],
  6.             function(){
  7.                 console.log('Bullet hit');
  8.             },function(){
  9.                 console.log('Failed');
  10.             });
  11.     });
  12. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand