21.05.2016, 23:29
This is my code for register:
And in mysql_log I have this error:
PHP код:
new string[1000]
mysql_format(konekcija, string, sizeof(string), "INSERT INTO `akaunti` ('Ime', 'Lozinka', 'Email', 'Godini', 'Pol', 'Drzava') VALUES ('%e', '%e', '%e', '%d', '%d', '%d')",
ImeIgrac(playerid), PlayerInfo[playerid][pLozinka], PlayerInfo[playerid][pEmail], PlayerInfo[playerid][pGodini], PlayerInfo[playerid][pPol], PlayerInfo[playerid][pDrzava])
mysql_query(konekcija, string)
PHP код:
[01:19:52] [ERROR] CMySQLQuery::Execute - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ''Ime', 'Lozinka', 'Email', 'Godini', 'Pol', 'Drzava') VALUES ('Ile_Popivanovvv',' at line 1