Skip to content

Instantly share code, notes, and snippets.

@cfjedimaster
Created September 14, 2012 16:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cfjedimaster/3722935 to your computer and use it in GitHub Desktop.
Save cfjedimaster/3722935 to your computer and use it in GitHub Desktop.
$(document).ready(function() {
//initialize db
db = window.openDatabase("sightingdb", "1.0", "Sighting Database", 200000);
db.transaction(createDB, errorCB, initApp);
function createDB(trans) {
trans.executeSql("create table if not exists sighting(id INTEGER PRIMARY KEY,numufos,yourname,description)");
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment