Jump to content

few questions about sql


Extinction

Recommended Posts

So if I did something like this, would it work -

function checkAccounts(username)
local sqlConnect = dbConnect("sqlite", "test.db")
local querryH = dbQuery(sqlConnect, "SELECT * FROM accounts WHERE username = ?", username)
if querryH == "Extinction" then
	neededData = dbPoll(querryH, -1)
    outputChatBox("Username was found, listing all current usernames: ", source)
    outputChatBox(querryH) --- To list all the usernames in DB?
else
    outputChatBox("Username was not found", source)
	dbFree(querryH)
end

checkAccounts()


 

Edited by Extinction
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...