Jump to content

Mysql result returns nil


Wei

Recommended Posts

ok, try this:

local checkSave = dbQuery( test_db, "SELECT * FROM accounts WHERE serial=?", getPlayerSerial(source) ) 
local result = dbPoll( checkSave, -1 ) 
for i,v in pairs(result)do 
     for _,b in ipairs(v)do 
          outputChatBox(i..":"..b) 
     end 
end 

Edited by Guest
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...