When i tried to get data from my sql Server, i got an Table with one object but that objects is nil why?
could it be, that the sql Server istn't ready?
the code:
outputChatBox("halloWelt")
rpg_db = dbConnect("mysql","dbname=mta_rpg;host=127.0.0.1","***","****") -- ***=uname ****=password
if not rpg_db then
outputConsole ("failed")
end
outputChatBox("loaded")
q = dbQuery(rpg_db,"SELECT fname FROM acc")
res = dbPoll(q,-1)
outputChatBox(table.getn(res[1]))
--for i = 1,table.getn(res) do
-- outputChatBox( res[i][1]..":"..res[i][2]..":"..res[i][3])
--end
outputChatBox("mysqlQery")