[ASK] using variable in SQLite query Corona

I want to update row table in SQLite database (Corona SDK) using variable, but I have stuck to call variable in query

value = true

i = 1

local q = [[UPDATE keadaan SET status=’]]… ‘value’ …[[’ WHERE id=’]]… ‘i’ …[[’;]]
db:exec( q )

anyone can help me ?

Take the quotes off of value and i.

Rob

Take the quotes off of value and i.

Rob