Jump to content

mysql_connect problem


Snoozy

Recommended Posts

Hey, so yea I'm a max noob at LUA coming from PAWN and having some harsh times even getting mysql_connect(arg1,arg2,arg3,arg4) to work without problems.

My problem is that, I'm trying to execute the simple

  
    handler = mysql_connect("IP", "¤¤¤¤", ""####", "......") -- Establish the connection 
    if ( not handler ) then -- The connection failed 
     outputDebugString("Unable to connect to the MySQL server") 
    else 
     outputDebugString("Able to connect to the MySQL server") 
     mysql_close(handler) -- Close the connection 
    end  
  
 

Also, I'm trying to execute it clientside will that be a problem?

When I try, it like f's the whole script up like nothing works then the GUI that is meant to come after that wont come or anything it simply just makes the script not functionally working and it's starting to get annoying.

I'm wondering what could be causing this, only thing I can think of is it being clientside.

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