Snoozy Posted January 5, 2011 Share Posted January 5, 2011 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
Castillo Posted January 5, 2011 Share Posted January 5, 2011 mysql functions are only server side, that must be the problem. Link to comment
Snoozy Posted January 5, 2011 Author Share Posted January 5, 2011 Would certainly explain the problems I'm having. Thanks just wanted to be sure it's not me messing something else up. 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