11.04.2019, 18:49
PHP Code:
format(sqlquery, sizeof(sqlquery), "INSERT INTO `players` (`Name`, `Password`, `Salt`, `Pol`, `Godine`, `Email`) VALUES ('%s', '%s', '%s', %d, %d)",
DB_Escape(E_PLAYER_INFO[playerid][E_PLAYER_NAME]),
DB_Escape(E_PLAYER_INFO[playerid][E_PLAYER_PASSWORD]),
DB_Escape(E_PLAYER_INFO[playerid][E_PLAYER_SALT]),
E_PLAYER_INFO[playerid][E_PLAYER_GENDER],
E_PLAYER_INFO[playerid][E_PLAYER_AGE]);
db_query(Database, sqlquery);
print(sqlquery);
.
//print(sqlquery); this outputs
PHP Code:
INSERT INTO `players` (`Name`, `Password`, `Salt`, `Pol`, `Godine`, `Email`) VALUES ('Stefa_Kuja', 'F8FAE6659CF55CFDF7E3FEA6A3DC12C4E488F102725FC16990A57657CED954A7', ')ufaKWYP?[tz.0YU', 1, 18)