TheDarkBlade Posted December 26, 2015 Share Posted December 26, 2015 how can i check in my DB if there is a name on a specific collumn . example: i want to check if in collum accounts there is an account with the name Thedarkb Link to comment
Sasu Posted December 26, 2015 Share Posted December 26, 2015 local qh = dbQuery(connection, "SELECT * FROM yourtable WHERE thecolumn = ?", namevariable) local result = dbPoll( qh, -1 ) if type(result) == "table" and #result > 0 then -- do something end Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now