Jump to content

MySQL issue.


.:HyPeX:.

Recommended Posts

Well, it says error on dbpoll:

 Error: Table '**dbname**.all_tables' doesnt exist! 

  
Database = dbConnect("mysql","dbname=**dbname**;host=IP", "user","pass") 
  
        local query = dbQuery(Database, "SELECT `table_name` FROM `all_tables`") 
        local result = dbPoll(query,-1) 
        if result then 
        for i,v in ipairs(result) do 
        outputChatBox("Table Found! Name: "..v) 
        end 
  

Link to comment
Well, it says error on dbpoll:

 Error: Table '**dbname**.all_tables' doesnt exist! 

  
Database = dbConnect("mysql","dbname=**dbname**;host=IP", "user","pass") 
  
        local query = dbQuery(Database, "SELECT `table_name` FROM `all_tables`") 
        local result = dbPoll(query,-1) 
        if result then 
        for i,v in ipairs(result) do 
        outputChatBox("Table Found! Name: "..v) 
        end 
  

  
query = dbQuery(Database, "SELECT table_name FROM all_tables") 
  

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...