Insert data into database table

There is function to input data in table and function with proposal how to enter data.
        function insertData(db, title, context) {
            db.transaction(function (e) {
                e.executeSql("INSERT INTO tizenTable(title, content) VALUES (?, ?)", [title, context]);
                });
        }
        
        // Proposal of entering data wroten by user
        var enterdata = function (){
            insertData(db, prompt("Enter title:"), prompt("Enter content:"));	
        }

Responses

0 Replies