16.01.2019, 12:31
Is it possible to store MySQL's NOW() Date & Time function to a variable?
PHP код:
mysql_format(mysql, query, sizeof(query), "INSERT INTO `accounts` (`NAME`, `REGISTRATION`, `IP`, `PASSWORD`, `SALT`) VALUES ('%e', NOW(), '%s', '%s', '%e')", PlayerInfo[playerid][p_Name], PlayerInfo[playerid][p_newIP], PlayerInfo[playerid][p_Password], PlayerInfo[playerid][p_Salt]);
mysql_tquery(mysql, query, "OnPlayerRegister", "d", playerid);