Anyone know why this statement does not work?
local tablefill = “INSERT INTO Names2 VALUES (16,fname,‘Jones’)”
db:exec( tablefill )
fname is a variable containing the name “John” but this statement does not work. If I change it to this:
local tablefill = “INSERT INTO Names2 VALUES (16,‘John’,‘Jones’)”
db:exec( tablefill )
it works. Should variables not be able to be used as VALUES?
thanks. [import]uid: 23600 topic_id: 8125 reply_id: 308125[/import]