SA-MP Forums Archive
mysql error - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: mysql error (/showthread.php?tid=607631)



mysql error - ilijap - 21.05.2016

This is my code for register:

PHP код:
new string[1000]
mysql_format(konekcijastringsizeof(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(konekcijastring
And in mysql_log I have this error:

PHP код:
[01:19:52] [ERRORCMySQLQuery::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 



Re: mysql error - BloodyRP - 21.05.2016

PHP код:
new string[1000
mysql_format(konekcijastringsizeof(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(konekcijastring



Re: mysql error - ilijap - 21.05.2016

Quote:
Originally Posted by BloodyRP
Посмотреть сообщение
PHP код:
new string[1000
mysql_format(konekcijastringsizeof(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(konekcijastring
LOLLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOL OLOLOL

In PHP works with ' 0.0

THANKS!