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
//var win = Titanium.UI.currentWindow; | |
var currentWin = Ti.UI.currentWindow; | |
// if successful login - save user data to database | |
function insertRows(dbData) { | |
// call the database and table | |
var db = Ti.Database.install('../myapp.sqlite','users'); | |
// call out the info to save then save it | |
var theData = db.execute('INSERT INTO users (username, email) VALUES("'+name.value+'","'+email.value+'")'); | |