Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function dataBaseInsert(type, target, date)
- {
- db.transaction(function(transaction){
- var sql='INSERT INTO shots(bulletType, target, date) VALUES(?,?,?)';
- transaction.executeSql(sql, [type, target, date],
- function(){
- console.log('Bullet hit');
- },function(){
- console.log('Failed');
- });
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement