LabiVila Posted September 8, 2015 Share Posted September 8, 2015 local host = "127.0.0.1" local user = "root" local pass = "" local db = "ps" connect = dbConnect ("mysql", "dbname = "..db.."; host = "..host, user, pass) if connect then local query = dbQuery (connect, "SELECT * FROM `members`") if query then outputChatBox ("query finalizing") else outputChatBox ("no query") end local poll = dbPoll (query, -1) if poll then outputChatBox ("poll found") else outputChatBox ("poll not found") end else outputChatBox ("fail") end so I get the error at 'local poll = dbPoll (query, -1)', and in my outputChatBox I see 'poll not found', any kind of help? EDIT: Solved, for all you who get into this problem, removing spaces from dbConnect solves your problem 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