[MySQL] INSERT INTO help
#2

pawn Код:
public OnPlayerRegister(playerid,key[])
{
    printf("playerid: %i - Passwort: %s",playerid,key);
    new Name[MAX_PLAYER_NAME], Query[500], escname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, Name, sizeof Name);
    mysql_real_escape_string(Name,escname);
    format(Query,sizeof Query,"INSERT INTO `Accounts` \
    (Nickname, \
    Passwort, \
    Admin, \
    Level, \
    Respect, \
    Geld, \
    Handy, \
    HandyGeld, \
    Fraktion, \
    Leader, \
    Alter, \
    Geschlecht, \
    Muted, \
    Freezed, \
    Tutorial) \
    VALUES \
    ('%s',\
    '%s',\
    '0',\
    '1',\
    '0',\
    '20000',\
    '1',\
    '50',\
    '0',\
    '0',\
    '0',\
    '0',\
    '0',\
    '0',\
    '0')"
,escname,key);
    printf("%s",Query);
    mysql_query(Query);
To me is nothing wrong o-0
Reply


Messages In This Thread
[MySQL] INSERT INTO help - by Tigerkiller - 30.01.2012, 01:39
Re: [MySQL] INSERT INTO help - by Ricop522 - 30.01.2012, 02:06
Re: [MySQL] INSERT INTO help - by MP2 - 30.01.2012, 02:23
Re: [MySQL] INSERT INTO help - by [HiC]TheKiller - 30.01.2012, 03:06

Forum Jump:


Users browsing this thread: 1 Guest(s)