One question, how would I check does something exists in a database table, in some column - a row ( in my case, the account ) - do I do it with dbQuery or what?
I literally suck at MySQL stuff
function test ( name )
local acc = dbQuery( exports.misc:getConnection ( "server" ), "SELECT * FROM user_list WHERE username = ?", name )
if not acc then
-- bla bla
else
-- acc exists
end
end
So that basically would check does a 'name' data ( acc ) from a 'username' column in the 'user_list' table exists?