mayel
New Member
I'm using this code when I want to get data from my mysql database, but it does only work with numbers:
local nameifon, res = 0, db.getResult("SELECT `name` FROM `players` WHERE `id` = 10;")
if res:getID() ~= -1 then
nameifon = res:getDataInt('name')
res:free()
end
Any idea?
local nameifon, res = 0, db.getResult("SELECT `name` FROM `players` WHERE `id` = 10;")
if res:getID() ~= -1 then
nameifon = res:getDataInt('name')
res:free()
end
Any idea?