wesoly136
Member
- Joined
- Jul 30, 2009
- Messages
- 562
- Reaction score
- 8
Hi!
Operating with databse queries is difficult for me :S
How to insert for example: all ids of guild owners to a table?
I tried something like that:
But with no effect, no error in console.
Operating with databse queries is difficult for me :S
How to insert for example: all ids of guild owners to a table?
I tried something like that:
Code:
local owners = db.getResult("SELECT `ownerid` FROM `guilds`;")
local list = {}
for i, tid in ipairs(owners) do
list[i] = tid
end