Hi,
I wanted to implement a database into my app so I’m using sqlite3 and it seems to connect fine but I only get nil values back.
I followed this guide:
http://developer.coronalabs.com/content/data-storage
And when I copy his code straight off it works.
My code is like this:
require ("sqlite3") local path = system.pathForFile("languagepic.db", system.ResourceDirectory) local db = sqlite3.open( path )
function loadWords() words = {} imageLocation = {} local counter = 1 for row in db:nrows("SELECT \* FROM Words") do print(row.content) end end
I have tried changing to row.content2, row.content3, inserting the column etc.
The thing when I query this particular database I get two nil values, which is the amount of rows in that particular table so it seems that it retrieves data but I can’t extract it.
Can anyone help me with this?
Best regards,
Tomas

Good post anyway so it got resolved quickly.