Jump to content

Recommended Posts

Posted

Salut, am incercat sa fac un sistem de login/register pe mysql r41-2. Nu imi da nicio eroare, dar cand intru sa ma loghez nu se salveaza contul in baza de date

Am creeat baza de date incorect sau?

frostyk.pwn

 

 

image.thumb.png.b349889a48771f137656f610ee26f31e.png

image.png

Posted

mysql_format(handle, query, sizeof(query), "INSERT INTO `accounts` ('name', 'password') VALUES ('%e', '%e')", getname(playerid), inputtext);

 

aici ai pus apostrof la numele coloanelor, ori nu pui nimic, ori pui intre ``

 

mysql_format(handle, query, sizeof(query), "INSERT INTO `accounts` (`name`, `password`) VALUES ('%e', '%e')", getname(playerid), inputtext);

Posted
4 minutes ago, Sancky said:

mysql_format(handle, query, sizeof(query), "INSERT INTO `accounts` ('name', 'password') VALUES ('%e', '%e')", getname(playerid), inputtext);

 

aici ai pus apostrof la numele coloanelor, ori nu pui nimic, ori pui intre ``

 

mysql_format(handle, query, sizeof(query), "INSERT INTO `accounts` (`name`, `password`) VALUES ('%e', '%e')", getname(playerid), inputtext);

tot asa e

 

Posted
4 minutes ago, frostyk said:

tot asa e

 

da, nu trimiti query-ul catre mysql cum trebuie, acolo ai 'mysql_pquery(handle, "", "");', tu practic trimiti un query gol.

pune mysql_pquery(handle, query);

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
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.