local query = dbQuery(connect, "SELECT * FROM `users` WHERE `name`=? and `password`=?", username, password)
local result = dbPoll(query, -1)
if #result ~= 0 then
.....
end
for k,row in pairs (result) do
outputChatBox (row ["name"])
end
может это сработает?