Jump to content

[HELP]MySql create account


boban88

Recommended Posts

hello i need help with my script.

I have register via MySql but when i use /reg on server than server answer me login sucessfull but DB is empty. My line:

mysql_query( database, "INSERT INTO accounts (log,pass,serial,name,points,money,wins,second,third,hunters,alevel,kills,score,playtime,deaths,matches,days,hours,minutes ) VALUES ('" .. username .. "','" .. password .. "', '" .. serial .. "', '" .. name .. "','1','1','1','1','1','1','1','1','1','1','1','1','1','1','1' )" ) 

and i have this:

database = mysql_connect( "localhost", "root", "pass", "db" )  
if database then 
    outputDebugString ('Connect') 
else 
    outputDebugString ("Nothing") 
end 

and console answer me: Connect.

I have not idea why this not working. Thanks for every answer.

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