• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

db.getResult

Dominik ms

Member
Joined
Jan 20, 2010
Messages
424
Reaction score
6
PHP:
local Info = db.getResult("SELECT `password` FROM `accounts` WHERE `id` = 3;")
                local extraName = Info:getDataInt("password")
                Info:free()
            say(cid, extraName)

when result is notnumer, but is word ex: "power123" theni got "0"
Where is problem??
 
local extraName = Info:getDataInt("password")
to:
local extraName = Info:getDataString("password")
 
Back
Top