Hi guys
I’ve got 2 issues at the minute with some code that I’ve got.
Here’s the first one:
local row = row.id
local updateTable = "UPDATE Options SET option1=1 WHERE id="..row"
db:exec( updateTable )
The code above is incorrect and I get an error eveytime. The cause seems to be the way that “…row” has been written but I’ve tried every possible way but can’t seem to figure it out.
The second issue is that is there any way to reflect the change immediately? Everything is mainly Database based so I’d imagine I’d have to run a query to retrieve the updated information?
Ideally I don’t want to keep constantly running queries should the player decide they want to update many options at once! [import]uid: 40538 topic_id: 13086 reply_id: 313086[/import]