Hello,
My problem is when i make the connection and try to access the table.
I’m using the sqlite manager to create database and tables.
My database is in teh same folder of main.lua
The Error:
[C]: in function 'nrows'
in main chunk
Runtime error: no such table: myTable
My Code:
[code]
require “sqlite3”
myDB=sqlite3.open(‘myBD.sqlite3’)
local function onSystemEvent(event)
if(event.type == “applicationExit”) then
myDB:close();
end
end
for a in myDB:nrows(‘select * from myTable’) do
print(a.name)
end
[/code] [import]uid: 74146 topic_id: 21219 reply_id: 321219[/import]