mysql error
#1

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 
Reply
#2

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
Reply
#3

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!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)