mercredi 15 avril 2015

Make Function Using Sqlite Database(s)

I am making a webpage (or at least a file now), and I would like to create a function that acesses a SQLite database and based on a certain column returns an object containing the value of that row (in Javascript). Does anybody know how to do that? I don't know any ways to access the database, so I can't try at all. Something like:


function retrieveData(tableName, columnToCompare, value){ return getDataFromDatabase("SELECT * FROM tableName WHERE columnToCompare = value") }


Aucun commentaire:

Enregistrer un commentaire