MattHarris Posted July 7, 2011 Share Posted July 7, 2011 Hey guys, can you help me with it? It doesn't say me if connection was succesfull or failed and I tried registration script (mysql_insert_id) but doesn't work too. This is my code: connection = mysql_connect("localhost", "root", "", "phis_db") if ( not connection) then -- Connection failed outputDebugString("Unable to connect to MySQL!") else mysql_close(connection) Link to comment
Jaysds1 Posted July 8, 2011 Share Posted July 8, 2011 try this: connection = mysql_connect("localhost", "root", "", "phis_db") if not (connection) then -- Connection failed outputDebugString("Unable to connect to MySQL!") else mysql_close(connection) Link to comment
MattHarris Posted July 9, 2011 Author Share Posted July 9, 2011 I resolved my trouble just changing server, I was using wamp and I use xampp now. But now there's another trouble the registration script. 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